Class: Gem::LoadCache::Trie
- Inherits:
-
Struct
- Object
- Struct
- Gem::LoadCache::Trie
- Defined in:
- lib/gem/cache.rb
Instance Attribute Summary collapse
-
#trie ⇒ Object
Returns the value of attribute trie.
-
#values ⇒ Object
Returns the value of attribute values.
Instance Method Summary collapse
Instance Attribute Details
#trie ⇒ Object
Returns the value of attribute trie
4 5 6 |
# File 'lib/gem/cache.rb', line 4 def trie @trie end |
#values ⇒ Object
Returns the value of attribute values
4 5 6 |
# File 'lib/gem/cache.rb', line 4 def values @values end |
Instance Method Details
#get(x) ⇒ Object
5 6 7 8 |
# File 'lib/gem/cache.rb', line 5 def get(x) value = trie.get(x) return value ? values[value] : nil end |