class Ox::Node
Attributes
String value associated with the Node.
Public Class Methods
Source
# File lib/ox/node.rb, line 9 def initialize(value) @value = value.to_s end
Public Instance Methods
Source
# File lib/ox/node.rb, line 16 def eql?(other) return false if (other.nil? or self.class != other.class) other.value == value end
Returns true if this Object and other are of the same type and have the equivalent value otherwise false is returned.
-
other[Object] Object to compare self to.
Also aliased as: ==