Class: Node
- Inherits:
-
Struct
- Object
- Struct
- Node
- Defined in:
- lib/dietaryMenu/dll.rb
Overview
(tail) O (:next)-> O -> O ->(:prev) O (head)
Instance Attribute Summary collapse
-
#next ⇒ Object
Returns the value of attribute next.
-
#prev ⇒ Object
Returns the value of attribute prev.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
Instance Attribute Details
#next ⇒ Object
Returns the value of attribute next
4 5 6 |
# File 'lib/dietaryMenu/dll.rb', line 4 def next @next end |
#prev ⇒ Object
Returns the value of attribute prev
4 5 6 |
# File 'lib/dietaryMenu/dll.rb', line 4 def prev @prev end |
#value ⇒ Object
Returns the value of attribute value
4 5 6 |
# File 'lib/dietaryMenu/dll.rb', line 4 def value @value end |
Instance Method Details
#to_s ⇒ Object
5 6 7 |
# File 'lib/dietaryMenu/dll.rb', line 5 def to_s value.to_s end |