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.



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

#unwrapObject



41
42
43
# File 'lib/plurimath/xml_engine/oga.rb', line 41

def unwrap
  @wrapped
end