Module: Flexor::HashDelegation
- Included in:
- Plugins::Core::StoreMethods
- Defined in:
- lib/flexor/hash_delegation.rb
Overview
Methods that delegate directly to the underlying Hash store.
Instance Method Summary collapse
- #empty? ⇒ Boolean
- #has_key?(key) ⇒ Boolean
- #key?(key) ⇒ Boolean
- #keys ⇒ Object
- #length ⇒ Object
- #size ⇒ Object
- #values ⇒ Object
Instance Method Details
#empty? ⇒ Boolean
5 6 7 |
# File 'lib/flexor/hash_delegation.rb', line 5 def empty? @store.empty? end |
#has_key?(key) ⇒ Boolean
29 30 31 |
# File 'lib/flexor/hash_delegation.rb', line 29 def has_key?(key) key?(key) end |
#key?(key) ⇒ Boolean
25 26 27 |
# File 'lib/flexor/hash_delegation.rb', line 25 def key?(key) @store.key?(key) end |
#keys ⇒ Object
9 10 11 |
# File 'lib/flexor/hash_delegation.rb', line 9 def keys @store.keys end |
#length ⇒ Object
21 22 23 |
# File 'lib/flexor/hash_delegation.rb', line 21 def length @store.length end |
#size ⇒ Object
17 18 19 |
# File 'lib/flexor/hash_delegation.rb', line 17 def size @store.size end |
#values ⇒ Object
13 14 15 |
# File 'lib/flexor/hash_delegation.rb', line 13 def values @store.values end |