Class: RubyLexer::WToken

Inherits:
Token
  • Object
show all
Defined in:
lib/rubylexer/token.rb

Overview


Instance Attribute Summary

Attributes inherited from Token

#allow_ooo_offset, #as, #endline, #ident, #offset, #startline, #tag

Instance Method Summary collapse

Methods inherited from Token

#dump, #error, #has_no_block?, #initialize, #inspect, #linecount, #orig_inspect, #to_s, #ws_munge

Constructor Details

This class inherits a constructor from RubyLexer::Token

Instance Method Details

#===(pattern) ⇒ Object



71
72
73
74
# File 'lib/rubylexer/token.rb', line 71

def ===(pattern)
   assert @ident
   pattern===@ident
end