Class: Teepee::WhitespaceToken
- Inherits:
-
StringToken
- Object
- ParserNode
- Token
- StringToken
- Teepee::WhitespaceToken
- Defined in:
- lib/teepee/string-token.rb
Constant Summary collapse
- FULL_MATCH_REGEX =
/\A\s+\z/
- FRONT_MATCH_REGEX =
/\A\s+/
- COUNT_REGEX =
/\S/
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?, #number?, #to_number, #to_s
Methods inherited from Token
Methods inherited from ParserNode
Constructor Details
This class inherits a constructor from Teepee::StringToken
Instance Method Details
#to_html ⇒ Object
123 124 125 |
# File 'lib/teepee/string-token.rb', line 123 def to_html " " # Replace all whitespace tokens with a single space. end |
#whitespace ⇒ Object
119 120 121 |
# File 'lib/teepee/string-token.rb', line 119 def whitespace text end |