Class: Yamlt::Parser
- Inherits:
-
Object
- Object
- Yamlt::Parser
- Defined in:
- lib/yamlt/parser.rb,
lib/yamlt/parser/line.rb,
lib/yamlt/parser/state.rb,
lib/yamlt/parser/line/serializer.rb
Defined Under Namespace
Classes: Line, State, StateException
Instance Method Summary collapse
-
#initialize(filepath) ⇒ Parser
constructor
A new instance of Parser.
- #parse ⇒ Object
Constructor Details
Instance Method Details
#parse ⇒ Object
22 23 24 25 26 27 28 29 30 |
# File 'lib/yamlt/parser.rb', line 22 def parse IO.read(@filepath).each_line do |line| parse_line(line) end @state.flush @state end |