Module: Saxy

Defined in:
lib/saxy.rb,
lib/saxy/parser.rb,
lib/saxy/element.rb,
lib/saxy/version.rb,
lib/saxy/parsing_error.rb

Defined Under Namespace

Classes: Element, Parser, ParsingError

Constant Summary collapse

VERSION =
"0.7.1"

Class Method Summary collapse

Class Method Details

.parse(object, object_tag, options = {}, &blk) ⇒ Object



5
6
7
8
9
10
11
12
13
# File 'lib/saxy.rb', line 5

def parse(object, object_tag, options={}, &blk)
  parser = Parser.new(object, object_tag, options)

  if blk
    parser.each(blk)
  else
    parser.each
  end
end