Class: Peanuts::Mapper::Footprint
- Inherits:
-
Object
- Object
- Peanuts::Mapper::Footprint
show all
- Defined in:
- lib/peanuts/mapper.rb
Instance Method Summary
collapse
Instance Method Details
#==(other) ⇒ Object
Also known as:
eql?
55
56
57
|
# File 'lib/peanuts/mapper.rb', line 55
def ==(other)
self.equal?(other) || other && node_type == other.node_type && name == other.name && ns == other.ns
end
|
#hash ⇒ Object
61
62
63
|
# File 'lib/peanuts/mapper.rb', line 61
def hash
node_type.hash ^ name.hash ^ ns.hash
end
|
#to_s ⇒ Object
65
66
67
|
# File 'lib/peanuts/mapper.rb', line 65
def to_s
"#{node_type}(#{name}, #{ns})"
end
|