Class: TBMX::EmptyNewlinesToken
- Inherits:
-
StringToken
- Object
- ParserNode
- Token
- StringToken
- TBMX::EmptyNewlinesToken
- Defined in:
- lib/tbmx.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
Instance Method Summary collapse
Methods inherited from StringToken
count_regex, front_match_regex, full_match_regex, #initialize, matches?, #to_html, #to_s
Methods inherited from Token
Constructor Details
This class inherits a constructor from TBMX::StringToken
Instance Method Details
#newlines ⇒ Object
164 165 166 |
# File 'lib/tbmx.rb', line 164 def newlines text end |