Module: Speculations::Parser::State::In

Extended by:
In
Included in:
In
Defined in:
lib/speculations/parser/state/in.rb

Instance Method Summary collapse

Instance Method Details

#parse(line, _lnb, node, ctxt) ⇒ Object



6
7
8
9
10
11
12
13
# File 'lib/speculations/parser/state/in.rb', line 6

def parse line, _lnb, node, ctxt
  case
  when State.eoblock_match(line)
    [ctxt, node.parent]
  else
    [:in, node.add_line(line), ctxt]
  end
end