Method: PointBlank::Parsing::OLElementParser#consume

Defined in:
lib/mmmd/blankshell.rb

#consume(line, _parent = nil, **_hargs) ⇒ Array(String, Boolean)

Consume line markers

Parameters:

  • line (String)

Returns:

  • (Array(String, Boolean))


656
657
658
659
660
661
662
# File 'lib/mmmd/blankshell.rb', line 656

def consume(line, _parent = nil, **_hargs)
  return [nil, true] unless continues?(line)

  self.open(line)

  [normalize(line), true]
end