Class: Setsumei::Describable::IntAttribute
- Inherits:
-
Object
- Object
- Setsumei::Describable::IntAttribute
- Defined in:
- lib/setsumei/describable/int_attribute.rb
Instance Method Summary collapse
Instance Method Details
#==(other) ⇒ Object
5 6 7 |
# File 'lib/setsumei/describable/int_attribute.rb', line 5 def == other :int == other || IntAttribute == other end |
#cast(value) ⇒ Object
9 10 11 |
# File 'lib/setsumei/describable/int_attribute.rb', line 9 def cast value value.to_f.round end |