Method: Attributor::Symbol.load

Defined in:
lib/attributor/types/symbol.rb

.load(value, context = Attributor::DEFAULT_ROOT_CONTEXT, **options) ⇒ Object



9
10
11
12
13
# File 'lib/attributor/types/symbol.rb', line 9

def self.load(value, context = Attributor::DEFAULT_ROOT_CONTEXT, **options)
  value.to_sym
rescue
  super
end