tap

obj.tap{|x|...} â obj Instance Public methods Yields x to the block, and then returns x. The primary purpose of this method is to âtap intoâ a method chain, in order to perform operations on intermediate results within the chain. (1..10) .tap {|x| puts "original: #{x.inspect}"} .to_a .tap {|x| puts "array: #{x.inspect}"} .select {|x| x%2==0} .tap {|x| puts "evens: #{x.inspect}"} .map { |x| x*x } .tap {|x| puts "squares: #{x.inspect}"}

clone

clone() Instance Public methods Returns a clone of the matrix, so that the contents of each do not reference identical objects. There should be no good reason to do this since Matrices are immutable.

readline

readline(*args) Instance Public methods See Zlib::GzipReader documentation for a description.

extending

extending(*modules, &block) Instance Public methods Used to extend a scope with additional methods, either through a module or through a block provided. The object returned is a relation, which can be further extended. Using a module module Pagination def page(number) # pagination code goes here end end scope = Model.all.extending(Pagination) scope.page(params[:page]) You can also pass a list of modules: scope = Model.all.extending(Pagination, SomethingElse) Using a

fault

fault(hash) Class Public methods Converts the given hash to an XMLRPC::FaultException object by passing the faultCode and faultString attributes of the Hash to XMLRPC::FaultException.new Raises an Exception if the given hash doesn't meet the requirements. Those requirements being: 2 keys 'faultCode' key is an Integer 'faultString' key is a String

resume

fiber.resume(args, ...) â obj Instance Public methods Resumes the fiber from the point at which the last Fiber.yield was called, or starts running it if it is the first call to resume. Arguments passed to resume will be the value of the Fiber.yield expression or will be passed as block parameters to the fiber's block if this is the first resume. Alternatively, when resume is called it evaluates to the arguments passed to the next Fiber.yield statement inside the fiber's block or t

cloneNode

cloneNode(arg0) Instance Public methods IXMLDOMNode cloneNode BOOL arg0 --- deep [IN]

win32_last_error

win32_last_error() Class Public methods Returns the last win32 Error of the current executing Thread or nil if none

scale

scale(xorigin, yorigin, xscale, yscale) Instance Public methods

respond_to?

respond_to?(method, include_private = false) Instance Public methods