Class: Plurimath::XmlEngine::Oga::Wrapper
- Inherits:
-
Object
- Object
- Plurimath::XmlEngine::Oga::Wrapper
- Defined in:
- lib/plurimath/xml_engine/oga/wrapper.rb
Overview
Create API compatible with Ox, per Plurimath usage
Direct Known Subclasses
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(value) ⇒ Wrapper
constructor
A new instance of Wrapper.
- #unwrap ⇒ Object
Constructor Details
#initialize(value) ⇒ Wrapper
Returns a new instance of Wrapper.
6 7 8 |
# File 'lib/plurimath/xml_engine/oga/wrapper.rb', line 6 def initialize(value) @wrapped = value end |
Instance Method Details
#==(other) ⇒ Object
14 15 16 17 |
# File 'lib/plurimath/xml_engine/oga/wrapper.rb', line 14 def ==(other) self.class == other.class && @wrapped.inspect == other.unwrap.inspect end |
#unwrap ⇒ Object
10 11 12 |
# File 'lib/plurimath/xml_engine/oga/wrapper.rb', line 10 def unwrap @wrapped end |