Class: RedParse::KeywordToken
- Inherits:
-
Object
- Object
- RedParse::KeywordToken
- Defined in:
- lib/redparse/node.rb
Direct Known Subclasses
Instance Method Summary collapse
- #as ⇒ Object
- #infix ⇒ Object
- #not_real! ⇒ Object
- #not_real? ⇒ Boolean
-
#old_as ⇒ Object
KeywordToken#as/infix should be in rubylexer.
Instance Method Details
#as ⇒ Object
225 226 227 228 229 230 |
# File 'lib/redparse/node.rb', line 225 def as if tag and ident[/^[,*&]$/] tag.to_s+ident else old_as end end |
#infix ⇒ Object
232 233 234 |
# File 'lib/redparse/node.rb', line 232 def infix @infix if defined? @infix end |
#not_real! ⇒ Object
197 198 199 |
# File 'lib/redparse/node.rb', line 197 def not_real! @not_real=true end |
#not_real? ⇒ Boolean
201 202 203 |
# File 'lib/redparse/node.rb', line 201 def not_real? @not_real if defined? @not_real end |
#old_as ⇒ Object
KeywordToken#as/infix should be in rubylexer
224 |
# File 'lib/redparse/node.rb', line 224 alias old_as as |