Class: Xmlish::Parser

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

Instance Method Summary collapse

Constructor Details

#initialize(str, tag_names) ⇒ Parser

Returns a new instance of Parser.



43
44
45
46
# File 'lib/xmlish.rb', line 43

def initialize str, tag_names
  @str = str
  @tag_names = tag_names
end

Instance Method Details

#parseObject



48
49
50
# File 'lib/xmlish.rb', line 48

def parse
  normalise(parse_string @str)
end