Class: Peanuts::Mapper::Footprint

Inherits:
Object
  • Object
show all
Defined in:
lib/peanuts/mapper.rb

Direct Known Subclasses

MappingFootprint, ReaderFootprint

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

#hashObject



61
62
63
# File 'lib/peanuts/mapper.rb', line 61

def hash
  node_type.hash ^ name.hash ^ ns.hash
end

#to_sObject



65
66
67
# File 'lib/peanuts/mapper.rb', line 65

def to_s
  "#{node_type}(#{name}, #{ns})"
end