Module: ParserCore::BaseParser

Includes:
Mega
Defined in:
lib/parser_core/base_parser.rb

Constant Summary collapse

EMPTY_ARRAY =
[]

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Mega

#mega

Instance Attribute Details

#rawObject

Returns the value of attribute raw.



6
7
8
# File 'lib/parser_core/base_parser.rb', line 6

def raw
  @raw
end

Instance Method Details

#attributesObject



12
13
14
# File 'lib/parser_core/base_parser.rb', line 12

def attributes
  raw.attributes
end

#initialize(raw) ⇒ Object



8
9
10
# File 'lib/parser_core/base_parser.rb', line 8

def initialize(raw)
  @raw = raw
end