Class: Nodo
- Inherits:
-
Struct
- Object
- Struct
- Nodo
- Includes:
- Comparable
- Defined in:
- lib/exam1/linkedlist.rb,
lib/exam1/linkedlist.rb
Instance Attribute Summary collapse
-
#previo ⇒ Object
Returns the value of attribute previo.
-
#siguiente ⇒ Object
Returns the value of attribute siguiente.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
Instance Attribute Details
#previo ⇒ Object
Returns the value of attribute previo
1 2 3 |
# File 'lib/exam1/linkedlist.rb', line 1 def previo @previo end |
#siguiente ⇒ Object
Returns the value of attribute siguiente
1 2 3 |
# File 'lib/exam1/linkedlist.rb', line 1 def siguiente @siguiente end |
#value ⇒ Object
Returns the value of attribute value
1 2 3 |
# File 'lib/exam1/linkedlist.rb', line 1 def value @value end |
Instance Method Details
#<=>(other) ⇒ Object
5 6 7 |
# File 'lib/exam1/linkedlist.rb', line 5 def <=>(other) value <=> other.value end |