Method: Attributor::Integer.load
- Defined in:
- lib/attributor/types/integer.rb
.load(value, context = Attributor::DEFAULT_ROOT_CONTEXT, **options) ⇒ Object
35 36 37 38 39 |
# File 'lib/attributor/types/integer.rb', line 35 def self.load(value, context = Attributor::DEFAULT_ROOT_CONTEXT, **) Integer(value) rescue TypeError super end |