Class: Plurimath::XMLEngine::Oga::Wrapper

Inherits:
Object
  • Object
show all
Defined in:
lib/plurimath/xml_engine/oga.rb

Overview

Create API compatible with Ox, per Plurimath usage

Direct Known Subclasses

Node

Instance Method Summary collapse

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

#unwrapObject



46
47
48
# File 'lib/plurimath/xml_engine/oga.rb', line 46

def unwrap
  @wrapped
end