Module: Sequel::Plugins::StringStripper::InstanceMethods
- Defined in:
- lib/sequel/plugins/string_stripper.rb
Instance Method Summary collapse
-
#[]=(k, v) ⇒ Object
Strip value if it is a string, before attempting to assign it to the model’s values.
Instance Method Details
#[]=(k, v) ⇒ Object
Strip value if it is a string, before attempting to assign it to the model’s values.
20 21 22 |
# File 'lib/sequel/plugins/string_stripper.rb', line 20 def []=(k, v) v.is_a?(String) ? super(k, v.strip) : super end |