Class: Peanuts::Mapper::Footprint
- Inherits:
-
Object
- Object
- Peanuts::Mapper::Footprint
show all
- Extended by:
- Forwardable
- Defined in:
- lib/peanuts/mapper.rb
Overview
Instance Method Summary
collapse
Constructor Details
#initialize(obj) ⇒ 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
|