Class: Zadt::LinkedListNode
- Inherits:
-
Object
- Object
- Zadt::LinkedListNode
- Defined in:
- lib/zadt/AbstractDataTypes/LinkedList/LinkedList.rb
Instance Attribute Summary collapse
-
#next ⇒ Object
Returns the value of attribute next.
-
#val ⇒ Object
Returns the value of attribute val.
Class Method Summary collapse
Instance Method Summary collapse
- #help ⇒ Object
-
#initialize(val = nil, next_ = nil) ⇒ LinkedListNode
constructor
A new instance of LinkedListNode.
Constructor Details
#initialize(val = nil, next_ = nil) ⇒ LinkedListNode
Returns a new instance of LinkedListNode.
4 5 6 7 |
# File 'lib/zadt/AbstractDataTypes/LinkedList/LinkedList.rb', line 4 def initialize(val = nil, next_ = nil) @val = val @next = next_ end |
Instance Attribute Details
#next ⇒ Object
Returns the value of attribute next.
3 4 5 |
# File 'lib/zadt/AbstractDataTypes/LinkedList/LinkedList.rb', line 3 def next @next end |
#val ⇒ Object
Returns the value of attribute val.
3 4 5 |
# File 'lib/zadt/AbstractDataTypes/LinkedList/LinkedList.rb', line 3 def val @val end |
Class Method Details
.help ⇒ Object
13 14 15 |
# File 'lib/zadt/AbstractDataTypes/LinkedList/LinkedList.rb', line 13 def self.help LinkedListNode. end |
Instance Method Details
#help ⇒ Object
9 10 11 |
# File 'lib/zadt/AbstractDataTypes/LinkedList/LinkedList.rb', line 9 def help LinkedListNode.help end |