Class: Concurrent::LockFreeStack::Node
- Inherits:
-
Object
- Object
- Concurrent::LockFreeStack::Node
- Defined in:
- lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb
Instance Attribute Summary collapse
- #next_node ⇒ Node readonly
- #value ⇒ Object readonly
Instance Method Summary collapse
-
#initialize(value, next_node) ⇒ Node
constructor
A new instance of Node.
Constructor Details
#initialize(value, next_node) ⇒ Node
Returns a new instance of Node.
23 24 25 26 |
# File 'lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb', line 23 def initialize(value, next_node) @value = value @next_node = next_node end |
Instance Attribute Details
#next_node ⇒ Node (readonly)
14 15 16 |
# File 'lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb', line 14 def next_node @next_node end |
#value ⇒ Object
17 18 19 |
# File 'lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb', line 17 def value @value end |