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.
37 38 39 |
# File 'lib/plurimath/xml_engine/oga.rb', line 37 def initialize(value) @wrapped = value end |
Instance Method Details
#==(other) ⇒ Object
45 46 47 48 |
# File 'lib/plurimath/xml_engine/oga.rb', line 45 def ==(other) self.class == other.class && @wrapped.inspect == other.unwrap.inspect end |
#unwrap ⇒ Object
41 42 43 |
# File 'lib/plurimath/xml_engine/oga.rb', line 41 def unwrap @wrapped end |