sending!

sending!() Instance Public methods

source

source() Instance Public methods

configure

configure(key, val=None) Instance Public methods

item_sort

item_sort(item, *opts) Instance Public methods

entry_open?

entry_open?() Instance Public methods

type_cast

type_cast(value) Instance Public methods

write_nonblock

ios.write_nonblock(string) â integer Instance Public methods Writes the given string to ios using the write(2) system call after O_NONBLOCK is set for the underlying file descriptor. It returns the number of bytes written. #write_nonblock just calls the write(2) system call. It causes all errors the write(2) system call causes: Errno::EWOULDBLOCK, Errno::EINTR, etc. The result may also be smaller than string.length (partial write). The caller should care such errors and partial

nesting

Module.nesting â array Class Public methods Returns the list of Modules nested at the point of call. module M1 module M2 $a = Module.nesting end end $a #=> [M1::M2, M1] $a[0].name #=> "M1::M2"

new_safe_slave

new_safe_slave(safe=4, keys={}, &blk) Class Public methods Also aliased as: new_safeTk

strip_heredoc

strip_heredoc() Instance Public methods Strips indentation in heredocs. For example in if options[:usage] puts <<-USAGE.strip_heredoc This command does such and such. Supported options are: -h This message ... USAGE end the user would see the usage message aligned against the left margin. Technically, it looks for the least indented line in the whole string, and removes that amount of leading whitespace.