Method: Hatetepe::Parser#initialize

Defined in:
lib/hatetepe/parser.rb

#initialize(&block) ⇒ Parser

Returns a new instance of Parser.



21
22
23
24
25
26
27
28
# File 'lib/hatetepe/parser.rb', line 21

def initialize(&block)
  initialize_parser
  reset

  if block
    block.arity == 0 ? instance_eval(&block) : block.call(self)
  end
end