Class: GDK::ConfigType::Integer
- Defined in:
- lib/gdk/config_type/integer.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Base
#builder, #parent, #user_value, #value
Instance Method Summary collapse
Methods inherited from Base
#default_value, #dump!, #initialize, #root, #slug, #user_defined?, #validate!
Constructor Details
This class inherits a constructor from GDK::ConfigType::Base
Instance Method Details
#parse(value) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/gdk/config_type/integer.rb', line 6 def parse(value) ival = value.to_i raise ::TypeError unless value.to_s == ival.to_s ival end |