Class: Bignum

Inherits:
Object show all
Defined in:
lib/conversion/class_decoration.rb

Class Method Summary collapse

Class Method Details

.to_converter_procObject

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