Class: Speculations::Parser
- Inherits:
-
Object
- Object
- Speculations::Parser
show all
- 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/examples.rb,
lib/speculations/parser/state/includes.rb,
lib/speculations/parser/state/candidate.rb,
lib/speculations/parser/state/spec_context.rb,
lib/speculations/parser/state/context_maker.rb,
lib/speculations/parser/state/specify_block.rb
Defined Under Namespace
Modules: State
Classes: Context
Class Method Summary
collapse
Instance Method Summary
collapse
Instance Method Details
#parse_from_file(file, debug: false) ⇒ Object
21
22
23
24
25
26
27
28
|
# File 'lib/speculations/parser.rb', line 21
def parse_from_file(file, debug: false)
@filename = file
@input = File
.new(file)
.each_line(chomp: true)
.lazy
parse!(debug:)
end
|