Module: Micro::Attributes::Features::KeysAsSymbol::ClassMethods

Defined in:
lib/micro/attributes/features/keys_as_symbol.rb

Instance Method Summary collapse

Instance Method Details

#__attribute_key_check__(value) ⇒ Object



12
13
14
# File 'lib/micro/attributes/features/keys_as_symbol.rb', line 12

def __attribute_key_check__(value)
  Kind::Symbol[value]
end

#__attribute_key_transform__(value) ⇒ Object



16
17
18
# File 'lib/micro/attributes/features/keys_as_symbol.rb', line 16

def __attribute_key_transform__(value)
  value
end

#__attributes_keys_transform__(hash) ⇒ Object



20
21
22
# File 'lib/micro/attributes/features/keys_as_symbol.rb', line 20

def __attributes_keys_transform__(hash)
  Kind::Hash[hash]
end

#attributes_accessObject



8
9
10
# File 'lib/micro/attributes/features/keys_as_symbol.rb', line 8

def attributes_access
  :symbol
end