Class: LRUCache::Node

Inherits:
Struct
  • Object
show all
Defined in:
lib/lru_cache.rb

Instance Attribute Summary collapse

Instance Attribute Details

#keyObject

Returns the value of attribute key

Returns:

  • (Object)

    the current value of key



7
8
9
# File 'lib/lru_cache.rb', line 7

def key
  @key
end

#lruObject

Returns the value of attribute lru

Returns:

  • (Object)

    the current value of lru



7
8
9
# File 'lib/lru_cache.rb', line 7

def lru
  @lru
end

#mruObject

Returns the value of attribute mru

Returns:

  • (Object)

    the current value of mru



7
8
9
# File 'lib/lru_cache.rb', line 7

def mru
  @mru
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



7
8
9
# File 'lib/lru_cache.rb', line 7

def value
  @value
end