Sha256: 315437b11acff90d2ea0c958bf4bcb9570a0d3819fef1551ef91954cfc687682
Contents?: true
Size: 561 Bytes
Versions: 2
Compression:
Stored size: 561 Bytes
Contents
# frozen_string_literal: true module Micro::Attributes module Features module KeysAsSymbol module ClassMethods def attributes_access :symbol end def __attribute_key_check__(value) Kind::Of.(::Symbol, value) end def __attribute_key_transform__(value) value end def __attributes_keys_transform__(hash) Utils::Hashes.kind(hash) end end def self.included(base) base.send(:extend, ClassMethods) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
u-attributes-2.6.0 | lib/micro/attributes/features/keys_as_symbol.rb |
u-attributes-2.5.0 | lib/micro/attributes/features/keys_as_symbol.rb |