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