ptr

ptr Instance Public methods Returns a new Fiddle::Pointer instance that is a dereferenced pointer for this pointer. Analogous to the star operator in C.

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}"}

number_to_human_size

number_to_human_size(number, options = {}) Instance Public methods Formats the bytes in number into a more understandable representation (e.g., giving it 1500 yields 1.5 KB). This method is useful for reporting file sizes to users. You can customize the format in the options hash. See number_to_human if you want to pretty-print a generic number. Options :locale - Sets the locale to be used for formatting (defaults to current locale). :precision - Sets the precision of the number

to_feed

to_feed(rss, source) Instance Public methods

textbind_append

textbind_append(context, *args) Instance Public methods def #textbind_append(*args) _bind_append_for_event_class(Event_for_Items, [path, 'bindText'], *args) self end

number_to_phone

number_to_phone(number, options = {}) Instance Public methods Formats a number into a US phone number (e.g., (555) 123-9876). You can customize the format in the options hash. Options :area_code - Adds parentheses around the area code. :delimiter - Specifies the delimiter to use (defaults to â-â). :extension - Specifies an extension to add to the end of the generated number. :country_code - Sets the country code for the phone number. Examples number_to_phone(5551234)

version

version() Instance Public methods @return the XMLDecl version of this document as a String. If no XMLDecl has been set, returns the default version.

[]=

[]=(name, val) Instance Public methods Set struct member name, to value val

number_to_currency

number_to_currency(number, options = {}) Instance Public methods Formats a number into a currency string (e.g., $13.65). You can customize the format in the options hash. Options :locale - Sets the locale to be used for formatting (defaults to current locale). :precision - Sets the level of precision (defaults to 2). :unit - Sets the denomination of the currency (defaults to â$â). :separator - Sets the separator between the units (defaults to â.â). :delimiter - Sets the th

even?

fix.even? â true or false Instance Public methods Returns true if fix is an even number.