module_exec

mod.module_exec(arg...) {|var...| block } â obj Instance Public methods Evaluates the given block in the context of the class/module. The method defined in the block will belong to the receiver. class Thing end Thing.class_exec{ def hello() "Hello there!" end } puts Thing.new.hello() produces: Hello there!

completion_case_fold

Readline.completion_case_fold â bool Class Public methods Returns true if completion ignores case. If no, returns false. NOTE: Returns the same object that is specified by ::completion_case_fold= method. require "readline" Readline.completion_case_fold = "This is a String." p Readline.completion_case_fold # => "This is a String." Raises SecurityError exception if $SAFE is 4.

setup

setup() Instance Public methods Prepares for generation of output from the current directory

default_element_value_type

default_element_value_type(idxs) Instance Public methods

parent_file_name

parent_file_name() Instance Public methods File name of our parent

def_single_delegators

def_single_delegators(accessor, *methods) Instance Public methods Shortcut for defining multiple delegator methods, but with no provision for using a different name. The following two code samples have the same effect: def_delegators :@records, :size, :<<, :map def_delegator :@records, :size def_delegator :@records, :<< def_delegator :@records, :map def_delegators

external_encoding

strio.external_encoding => encoding Instance Public methods Returns the Encoding object that represents the encoding of the file. If strio is write mode and no encoding is specified, returns nil.

random_bytes

random_bytes(n=nil) Class Public methods ::random_bytes generates a random binary string. The argument n specifies the length of the result string. If n is not specified, 16 is assumed. It may be larger in future. The result may contain any byte: âx00â - âxffâ. p SecureRandom.random_bytes #=> "\xD8\\\xE0\xF4\r\xB2\xFC*WM\xFF\x83\x18\xF45\xB6" p SecureRandom.random_bytes #=> "m\xDC\xFC/\a\x00Uf\xB2\xB2P\xBD\xFF6S\x97" If secure random number generator is not available, NotImp

end_of_week

end_of_week(start_day = Date.beginning_of_week) Instance Public methods Returns a new date/time representing the end of this week on the given day. Week is assumed to start on start_day, default is Date.beginning_of_week or config.beginning_of_week when set. DateTime objects have their time set to 23:59:59. at_end_of_week

size

size() Instance Public methods The number of elements in the tuple.