class Nodo

Nodo como objeto comparable y ordenable (se mira el valor que contiene)

(!) Actualmente en desuso!

Attributes

id[R]
next[RW]
valor[R]

Public Class Methods

new(valor) click to toggle source

Constructor

# File lib/exam/nodo.rb, line 8
def initialize(valor)
        @valor = valor
        @id = object_id       #identificador univoco
        @next = nil
end

Public Instance Methods

<=>(other) click to toggle source
# File lib/exam/lista.rb, line 9
def <=> (other)
    value <=> other.value
end