Class: Koine::Attributes::Adapter::String

Inherits:
Base
  • Object
show all
Defined in:
lib/koine/attributes/adapter/string.rb

Instance Method Summary collapse

Methods inherited from Base

#coerce, #default_value, #with_default_value, #with_nil_value

Instance Method Details

#empty_to_nilObject



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_spacesObject



11
12
13
14
# File 'lib/koine/attributes/adapter/string.rb', line 11

def trim_empty_spaces
  @trim_empty_spaces = true
  self
end