Class: OpenNebula::ParsePoolSaxBase
- Inherits:
-
Object
- Object
- OpenNebula::ParsePoolSaxBase
- Defined in:
- lib/opennebula/xml_utils.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(pool_name, elem_name) ⇒ ParsePoolSaxBase
constructor
A new instance of ParsePoolSaxBase.
- #parse(str) ⇒ Object
Constructor Details
#initialize(pool_name, elem_name) ⇒ ParsePoolSaxBase
Returns a new instance of ParsePoolSaxBase.
100 101 102 |
# File 'lib/opennebula/xml_utils.rb', line 100 def initialize(pool_name, elem_name) @pool_sax=ParsePoolSax::PoolSax.new(pool_name, elem_name) end |
Instance Method Details
#parse(str) ⇒ Object
104 105 106 107 108 |
# File 'lib/opennebula/xml_utils.rb', line 104 def parse(str) @pool_sax.clear sax_parse(str) @pool_sax.pool end |