Class: AmplitudeExperiment::ListNode
- Inherits:
-
Object
- Object
- AmplitudeExperiment::ListNode
- Defined in:
- lib/experiment/util/lru_cache.rb
Overview
ListNode
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#next ⇒ Object
Returns the value of attribute next.
-
#prev ⇒ Object
Returns the value of attribute prev.
Instance Method Summary collapse
-
#initialize(data) ⇒ ListNode
constructor
A new instance of ListNode.
Constructor Details
#initialize(data) ⇒ ListNode
Returns a new instance of ListNode.
6 7 8 9 10 |
# File 'lib/experiment/util/lru_cache.rb', line 6 def initialize(data) @prev = nil @next = nil @data = data end |
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data.
4 5 6 |
# File 'lib/experiment/util/lru_cache.rb', line 4 def data @data end |
#next ⇒ Object
Returns the value of attribute next.
4 5 6 |
# File 'lib/experiment/util/lru_cache.rb', line 4 def next @next end |
#prev ⇒ Object
Returns the value of attribute prev.
4 5 6 |
# File 'lib/experiment/util/lru_cache.rb', line 4 def prev @prev end |