Class: Bliss::Parser
- Inherits:
-
Object
- Object
- Bliss::Parser
- Defined in:
- lib/bliss/parser.rb
Instance Method Summary collapse
-
#initialize(path) ⇒ Parser
constructor
A new instance of Parser.
- #parse ⇒ Object
Constructor Details
#initialize(path) ⇒ Parser
Returns a new instance of Parser.
3 4 5 6 |
# File 'lib/bliss/parser.rb', line 3 def initialize(path) @path = path @parser_machine = Bliss::ParserMachine.new(path) end |
Instance Method Details
#parse ⇒ Object
8 9 10 |
# File 'lib/bliss/parser.rb', line 8 def parse @parser_machine.parse end |