module Node_Double

Public Instance Methods

<=>(other) click to toggle source
# File lib/linkedlist/nodo_double.rb, line 12
def <=>(other)
  return nil unless other.instance_of? Nodo_Double
  @val <=> other.val
end
==(other) click to toggle source
# File lib/linkedlist/nodo_double.rb, line 17
def ==(other)
  if other.is_a? Nodo_Double
    @val == other.val
  else
    false
  end
end