Class: Bignum
Class Method Summary collapse
-
.to_converter_proc ⇒ Object
Returns a Proc that converts to Integer.
Class Method Details
.to_converter_proc ⇒ Object
Returns a Proc that converts to Integer
Bignum.to_converter_proc.call('1') # => 1
Note that the result may not be a Bignum.
See Integer.to_converter_proc, Conversion.converter, Object#convert_to
10 11 12 |
# File 'lib/conversion/class_decoration.rb', line 10 def to_converter_proc Integer.to_converter_proc end |