Module: Speculations::Parser::State::Inc

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

Instance Method Summary collapse

Instance Method Details

#parse(line, _lnb, node) ⇒ Object



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

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