Module: Intrinsic::Intrinsicism::Coercion::Integer
- Defined in:
- lib/intrinsic/intrinsicism/coercion/integer.rb
Class Method Summary collapse
Class Method Details
.convert(value) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/intrinsic/intrinsicism/coercion/integer.rb', line 5 def self.convert(value) begin value.to_i rescue raise TypeError end end |