Class: Hahamut::Attribute::String
- Defined in:
- lib/hahamut/attribute/string.rb
Overview
String Type
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#as_json, #initialize, #to_json
Constructor Details
This class inherits a constructor from Hahamut::Attribute::Base
Instance Method Details
#value ⇒ Object
7 8 9 |
# File 'lib/hahamut/attribute/string.rb', line 7 def value @value ||= before_cast.to_s end |