Class: Koine::Attributes::Adapter::String
- Defined in:
- lib/koine/attributes/adapter/string.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#coerce, #default_value, #initialize, #with_default_value, #with_nil_value
Constructor Details
This class inherits a constructor from Koine::Attributes::Adapter::Base
Instance Method Details
#empty_to_nil ⇒ Object
5 6 7 8 9 |
# File 'lib/koine/attributes/adapter/string.rb', line 5 def empty_to_nil with_nil_value(nil) @empty_to_nil = true self end |
#trim_empty_spaces ⇒ Object
11 12 13 14 |
# File 'lib/koine/attributes/adapter/string.rb', line 11 def trim_empty_spaces @trim_empty_spaces = true self end |