Class: Speculations::Parser
- Inherits:
-
Object
- Object
- Speculations::Parser
- Defined in:
- lib/speculations/parser.rb,
lib/speculations/parser/context.rb,
lib/speculations/parser/state/in.rb,
lib/speculations/parser/state/out.rb,
lib/speculations/parser/state/includes.rb,
lib/speculations/parser/state/candidate.rb
Defined Under Namespace
Modules: State Classes: Context
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
Instance Method Details
#parse_from_file(file) ⇒ Object
16 17 18 19 20 21 22 23 |
# File 'lib/speculations/parser.rb', line 16 def parse_from_file file @filename = file @input = File .new(file) .each_line(chomp: true) .lazy parse! end |