Class: Nodaire::Indental::Parser
- Defined in:
- lib/nodaire/indental/parser.rb
Defined Under Namespace
Classes: Category
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Attributes inherited from Parser
Instance Method Summary collapse
-
#initialize(source, strict, options = {}) ⇒ Parser
constructor
A new instance of Parser.
Methods inherited from Parser
Constructor Details
#initialize(source, strict, options = {}) ⇒ Parser
Returns a new instance of Parser.
12 13 14 15 16 17 18 19 20 |
# File 'lib/nodaire/indental/parser.rb', line 12 def initialize(source, strict, = {}) super(strict, ) @symbolize_names = option(:symbolize_names, false) @data = {} @category = nil parse! Nodaire::Indental::Lexer.tokenize(source) end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
10 11 12 |
# File 'lib/nodaire/indental/parser.rb', line 10 def data @data end |