Class: Peanuts::Mapper::Footprint
- Inherits:
-
Object
- Object
- Peanuts::Mapper::Footprint
- Extended by:
- Forwardable
- Defined in:
- lib/peanuts/mapper.rb
Overview
:nodoc:
Direct Known Subclasses
Instance Method Summary collapse
- #hash ⇒ Object
-
#initialize(obj) ⇒ Footprint
constructor
A new instance of Footprint.
- #to_s ⇒ Object
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
#hash ⇒ Object
80 81 82 |
# File 'lib/peanuts/mapper.rb', line 80 def hash node_type.hash ^ local_name.hash ^ namespace_uri.hash end |
#to_s ⇒ Object
84 85 86 |
# File 'lib/peanuts/mapper.rb', line 84 def to_s "#{node_type}(#{local_name}, #{namespace_uri})" end |