Class: Async::List::Node
- Inherits:
-
Object
- Object
- Async::List::Node
- Defined in:
- lib/async/list.rb
Overview
A linked list Node.
Instance Attribute Summary collapse
-
#head ⇒ Object
Returns the value of attribute head.
-
#tail ⇒ Object
Returns the value of attribute tail.
Instance Method Summary collapse
- #to_s ⇒ Object (also: #inspect)
Instance Attribute Details
#head ⇒ Object
Returns the value of attribute head.
240 241 242 |
# File 'lib/async/list.rb', line 240 def head @head end |
#tail ⇒ Object
Returns the value of attribute tail.
241 242 243 |
# File 'lib/async/list.rb', line 241 def tail @tail end |
Instance Method Details
#to_s ⇒ Object Also known as: inspect
244 245 246 |
# File 'lib/async/list.rb', line 244 def to_s sprintf("#<%s:0x%x>", self.class.name, object_id) end |