class RedParse::Token
Public Instance Methods
begin_parsetree(o)
click to toggle source
# File lib/redparse/node.rb, line 187 def begin_parsetree(o); parsetree(o) end
data()
click to toggle source
# File lib/redparse/node.rb, line 184 def data; [self] end
image()
click to toggle source
# File lib/redparse/node.rb, line 167 def image; "#{inspect}" end
lvalue()
click to toggle source
# File lib/redparse/node.rb, line 183 def lvalue; nil end
rescue_parsetree(o)
click to toggle source
# File lib/redparse/node.rb, line 186 def rescue_parsetree(o); parsetree(o) end
short_inspect()
click to toggle source
# File lib/redparse/node.rb, line 169 def short_inspect; inspect+"\n" end
to_parsetree(*options)
click to toggle source
# File lib/redparse/node.rb, line 171 def to_parsetree(*options) #this shouldn't be needed anymore o={} [:newlines,:quirks,:ruby187].each{|opt| o[opt]=true if options.include? opt } result=[parsetree(o)] result=[] if result==[[]] return result end
unary()
click to toggle source
# File lib/redparse/node.rb, line 185 def unary; false end