Class: ListNode
- Inherits:
-
Struct
- Object
- Struct
- ListNode
- Defined in:
- lib/lander/list_node.rb
Instance Attribute Summary collapse
-
#next ⇒ Object
Returns the value of attribute next.
-
#val ⇒ Object
Returns the value of attribute val.
Instance Method Summary collapse
Instance Attribute Details
#next ⇒ Object
Returns the value of attribute next
1 2 3 |
# File 'lib/lander/list_node.rb', line 1 def next @next end |
#val ⇒ Object
Returns the value of attribute val
1 2 3 |
# File 'lib/lander/list_node.rb', line 1 def val @val end |
Instance Method Details
#to_s ⇒ Object
2 |
# File 'lib/lander/list_node.rb', line 2 def to_s; self && "#{val} -> #{self.next}" end |