In Files

Parent

Methods

Class Index [+]

Quicksearch

Integer

Shortcut to define DecNums, e.g. 1._234567890123456789 produces Flt::DecNum(‘1.234567890123456789’) Based on coderrr.wordpress.com/2009/12/22/get-arbitrarily-precise-bigdecimals-in-ruby-for-just-one-extra-character/

Public Instance Methods

method_missing(m, *a, &b) click to toggle source
     # File lib/flt/sugar.rb, line 106
106:   def method_missing(m, *a, &b)
107:     return Flt::DecNum("#{self}.#{$1.tr('_','')}")  if m.to_s =~ /^_(\d[_\d]*)$/
108:     super
109:   end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.