Class: RedParse::KeywordToken

Inherits:
Object
  • Object
show all
Defined in:
lib/redparse/node.rb

Direct Known Subclasses

SpecializedKeywordToken

Instance Method Summary collapse

Instance Method Details

#asObject



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

#infixObject



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

Returns:

  • (Boolean)


201
202
203
# File 'lib/redparse/node.rb', line 201

def not_real?
  @not_real if defined? @not_real
end

#old_asObject

KeywordToken#as/infix should be in rubylexer



224
# File 'lib/redparse/node.rb', line 224

alias old_as as