Tomdoc

Tomdoc

1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Public: Duplicate some text an arbitrary number of times.
#
# text - The String to be duplicated.
# count - The Integer number of times to duplicate the text.
#
# Examples
#
# multiplex('Tom', 4)
# # => 'TomTomTomTom'
#
# Returns the duplicated String.
def multiplex(text, count)
text * count
end

See tomdoc.org.

Tags

  • Deprecated
  • Internal
  • Public

Options

1
2
3
4
# options - The Hash options used to refine the selection (default: {}):
# :color - The String color to restrict by (optional).
# :weight - The Float weight to restrict by. The weight should
# be specified in grams (optional).

Yields

1
# Yields the Integer index of the iteration.
1
# Returns the duplicated String.
1
# Returns nothing.
1
# Raises Errno::ENOENT if the file can't be found.
1
2
# Returns something else and this is a wrapped
# multi-line comment.

Signatures

1
2
3
4
# Signature
#
# find_by_<field>[_and_<field>...](args)
#