Module: Speculations::Parser::State::SpecContext
- Extended by:
- ContextMaker, SpecContext
- Included in:
- SpecContext
- Defined in:
- lib/speculations/parser/state/spec_context.rb
Instance Method Summary collapse
Instance Method Details
#parse(line, lnb, node, title, debug: false) ⇒ Object
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/speculations/parser/state/spec_context.rb', line 9 def parse line, lnb, node, title, debug: false # node.info(:spec_context) if State.ruby_code_block(line) #dbg_match("examples", lnb, debug:) make_spec_context(lnb:, node:, title:) else #dbg_match("abandon spec context", lnb, debug:) [:out, node] end end |