Module: Toy::Extensions::Symbol

Included in:
Symbol
Defined in:
lib/toy/extensions/symbol.rb

Instance Method Summary collapse

Instance Method Details

#from_store(value) ⇒ Object



8
9
10
# File 'lib/toy/extensions/symbol.rb', line 8

def from_store(value, *)
  value.nil? ? nil : value.to_sym
end

#to_store(value) ⇒ Object



4
5
6
# File 'lib/toy/extensions/symbol.rb', line 4

def to_store(value, *)
  value.nil? ? nil : value.to_s
end