Class: TBMX::WordToken
- Inherits:
-
StringToken
- Object
- ParserNode
- Token
- StringToken
- TBMX::WordToken
- Defined in:
- lib/tbmx.rb
Constant Summary collapse
- FULL_MATCH_REGEX =
/\A[^\s{}\\]+\z/
- FRONT_MATCH_REGEX =
/[^\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?, #to_s
Methods inherited from Token
Constructor Details
This class inherits a constructor from TBMX::StringToken
Instance Method Details
#to_html ⇒ Object
188 189 190 |
# File 'lib/tbmx.rb', line 188 def to_html html_escape text end |
#word ⇒ Object
192 193 194 |
# File 'lib/tbmx.rb', line 192 def word text end |