Class: PointBlank::Parsing::SetextParserLV2

Inherits:
UnderlineParser show all
Defined in:
lib/mmmd/blankshell.rb

Overview

Setext parser level 2

Class Method Summary collapse

Methods inherited from NullParser

#close, #consume, #initialize, #parsed_content

Constructor Details

This class inherits a constructor from PointBlank::Parsing::NullParser

Class Method Details

.begin?(line) ⇒ Boolean

This method is abstract.

Underline parser

Returns:

  • (Boolean)


489
490
491
# File 'lib/mmmd/blankshell.rb', line 489

def self.begin?(line)
  line.match?(/\A {0,3}-{3,}\s*\z/)
end