Class: Peanuts::Mapper::Footprint

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

Overview

:nodoc:

Direct Known Subclasses

MappingFootprint, ReaderFootprint

Instance Method Summary collapse

Constructor Details

#initialize(obj) ⇒ Footprint

Returns a new instance of Footprint.



76
77
78
# File 'lib/peanuts/mapper.rb', line 76

def initialize(obj)
  @obj = obj
end

Instance Method Details

#hashObject



80
81
82
# File 'lib/peanuts/mapper.rb', line 80

def hash
  node_type.hash ^ local_name.hash ^ namespace_uri.hash
end

#to_sObject



84
85
86
# File 'lib/peanuts/mapper.rb', line 84

def to_s
  "#{node_type}(#{local_name}, #{namespace_uri})"
end