Menu

gitpiper

Tomdoc Cheat Sheet in November 2024

Last Updated: 8 November 2024

README.md

Tomdoc

{: .-prime}

# 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

# 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

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

Signatures

# Signature
#
#   find_by_<field>[_and_<field>...](args)
#

338+ more cheat sheets for you in November 2024

Subscribe to our Newsletter

Subscribe to get resources directly to your inbox. You won't receive any spam! ✌️

© 2024 GitPiper. All rights reserved

Rackpiper Technology Inc

Company

About UsBlogContact

Subscribe to our Newsletter

Subscribe to get resources directly to your inbox. You won't receive any spam! ✌️