Class: Crack::XML

Inherits:
Object
  • Object
show all
Defined in:
lib/crack/xml.rb

Class Method Summary collapse

Class Method Details

.parse(xml) ⇒ Object



228
229
230
# File 'lib/crack/xml.rb', line 228

def self.parse(xml)
  parser.parse(xml)
end

.parserObject



220
221
222
# File 'lib/crack/xml.rb', line 220

def self.parser
  @@parser ||= REXMLParser
end

.parser=(parser) ⇒ Object



224
225
226
# File 'lib/crack/xml.rb', line 224

def self.parser=(parser)
  @@parser = parser
end