Class: Attributary::Types::SymbolType

Inherits:
Type
  • Object
show all
Defined in:
lib/attributary/types/symbol_type.rb

Class Method Summary collapse

Class Method Details

.cast_to(value) ⇒ Object



4
5
6
# File 'lib/attributary/types/symbol_type.rb', line 4

def self.cast_to(value)
  value.to_s.to_sym
end