abs

abs() Instance Public methods Returns the absolute value. BigDecimal('5').abs -> 5 BigDecimal('-3').abs -> 3

/ 2

cmp / numeric â complexcmp.quo(numeric) â complex Instance Public methods Performs division. Complex(2, 3) / Complex(2, 3) #=> ((1/1)+(0/1)*i) Complex(900) / Complex(1) #=> ((900/1)+(0/1)*i) Complex(-2, 9) / Complex(-9, 2) #=> ((36/85)-(77/85)*i) Complex(9, 8) / 4 #=> ((9/4)+(2/1)*i) Complex(20, 9) / 9.8 #=> (2.0408163265306123+0.9183673469387754i)

open

IO.open(fd, mode="r" [, opt]) â ioIO.open(fd, mode="r" [, opt]) { |io| block } â obj Class Public methods With no associated block, IO.open is a synonym for ::new. If the optional code block is given, it will be passed io as an argument, and the IO object will automatically be closed when the block terminates. In this instance, ::open returns the value of the block. See ::new for a description of the fd, mode and opt parameters.

callcc

callcc {|cont| block } â obj Instance Public methods Generates a Continuation object, which it passes to the associated block. You need to require 'continuation' before using this method. Performing a cont.call will cause the callcc to return (as will falling through the end of the block). The value returned by the callcc is the value of the block, or the value passed to cont.call. See class Continuation for more details. Also see #throw for an alternative mechanism for unwindi

executables

executables() Instance Public methods Executables included in the gem. For example, the rake gem has rake as an executable. You donât specify the full path (as in bin/rake); all application-style files are expected to be found in bindir. These files must be executable ruby files. Files that use bash or other interpreters will not work. Usage: spec.executables << 'rake'

extra_rdoc_files

extra_rdoc_files() Instance Public methods Extra files to add to RDoc such as README or doc/examples.txt When the user elects to generate the RDoc documentation for a gem (typically at install time), all the library files are sent to RDoc for processing. This option allows you to have some non-code files included for a more complete set of documentation. Usage: spec.extra_rdoc_files = ['README', 'doc/user-guide.txt']

setup_controller_request_and_response

setup_controller_request_and_response() Instance Public methods

add_generator

add_generator(klass) Class Public methods Add klass that can generate output after parsing

namespaceURI

namespaceURI() Instance Public methods BSTR namespaceURI the URI for the namespace applying to the node

fetcher

fetcher() Class Public methods Cached RemoteFetcher instance.