Class: Teepee::EmptyNewlinesToken

Inherits:
StringToken show all
Defined in:
lib/teepee/string-token.rb

Constant Summary collapse

FULL_MATCH_REGEX =
/\A\n\n+\z/
FRONT_MATCH_REGEX =
/\A\n\n+/
COUNT_REGEX =
/[^\n]/

Instance Attribute Summary

Attributes inherited from StringToken

#text

Instance Method Summary collapse

Methods inherited from StringToken

count_regex, front_match_regex, full_match_regex, #initialize, matches?, #number?, #to_html, #to_number, #to_s

Methods inherited from Token

matches?

Methods inherited from ParserNode

#to_html, #use_scope

Constructor Details

This class inherits a constructor from Teepee::StringToken

Instance Method Details

#newlinesObject



109
110
111
# File 'lib/teepee/string-token.rb', line 109

def newlines
  text
end