Class: Plurimath::XMLEngine::Oga::Wrapper
- Inherits:
-
Object
- Object
- Plurimath::XMLEngine::Oga::Wrapper
- Defined in:
- lib/plurimath/xml_engine/oga.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.
42 43 44 |
# File 'lib/plurimath/xml_engine/oga.rb', line 42 def initialize(value) @wrapped = value end |
Instance Method Details
#==(other) ⇒ Object
50 51 52 53 |
# File 'lib/plurimath/xml_engine/oga.rb', line 50 def ==(other) self.class == other.class && @wrapped.inspect == other.unwrap.inspect end |
#unwrap ⇒ Object
46 47 48 |
# File 'lib/plurimath/xml_engine/oga.rb', line 46 def unwrap @wrapped end |