Module: StringAttributes::Base::ClassMethods
- Defined in:
- lib/string_attributes/base.rb
Instance Method Summary collapse
Instance Method Details
#attr_string(attribute, options = {}) ⇒ Object
13 14 15 16 17 |
# File 'lib/string_attributes/base.rb', line 13 def attr_string(attribute, = {}) validate_attribute!(attribute) set_strip(attribute) if [:strip] end |