Class: RubyLexer::ZwToken
- Inherits:
-
IgnoreToken
- Object
- Token
- IgnoreToken
- RubyLexer::ZwToken
- Defined in:
- lib/rubylexer/token.rb,
lib/rubylexer/tokenprinter.rb
Overview
Direct Known Subclasses
AssignmentRhsListEndToken, AssignmentRhsListStartToken, EndHeaderToken, KwParamListEndToken, KwParamListStartToken, NoWsToken
Instance Attribute Summary
Attributes inherited from Token
#allow_ooo_offset, #as, #ident, #offset, #tag
Instance Method Summary collapse
- #explicit_form ⇒ Object
- #explicit_form_all ⇒ Object
-
#initialize(offset) ⇒ ZwToken
constructor
A new instance of ZwToken.
- #ws_munge(tp) ⇒ Object
Methods inherited from Token
Constructor Details
#initialize(offset) ⇒ ZwToken
Returns a new instance of ZwToken.
495 496 497 |
# File 'lib/rubylexer/token.rb', line 495 def initialize(offset) super('',offset) end |
Instance Method Details
#explicit_form ⇒ Object
498 499 500 |
# File 'lib/rubylexer/token.rb', line 498 def explicit_form abstract end |
#explicit_form_all ⇒ Object
501 |
# File 'lib/rubylexer/token.rb', line 501 def explicit_form_all; explicit_form end |
#ws_munge(tp) ⇒ Object
88 89 90 91 92 93 94 95 |
# File 'lib/rubylexer/tokenprinter.rb', line 88 def ws_munge(tp) case tp.showzw when 2; explicit_form_all when 1; explicit_form when 0; nil else raise 'unknown showzw' end end |