Module: RubyLexer::TokenPat
- Defined in:
- lib/rubylexer/token.rb
Overview
Constant Summary collapse
- @@TokenPats =
{}
Instance Method Summary collapse
-
#token_pat ⇒ Object
used in various case statements…
Instance Method Details
#token_pat ⇒ Object
used in various case statements…
170 171 172 173 174 175 176 177 178 179 |
# File 'lib/rubylexer/token.rb', line 170 def token_pat #used in various case statements... result=self.dup @@TokenPats[self] ||= (class <<result alias old_3eq === def ===(token) WToken===token and old_3eq(token.ident) end end;result) end |