class RedParse::ListInNode::UndefNode

Public Class Methods

new(first,middle,last=nil) click to toggle source
Calls superclass method RedParse::ListInNode::Node::new
# File lib/redparse/node.rb, line 5026
def initialize(first,middle,last=nil)
  @offset=first.offset
  if last
    node,newsym=first,last
    super(*node << baresym2str(newsym))
  else
    super(baresym2str(middle))
  end
end

Public Instance Methods

image() click to toggle source
# File lib/redparse/node.rb, line 5036
def image; "(undef)" end
parsetree(o) click to toggle source
# File lib/redparse/node.rb, line 5042
def parsetree(o)
  result=map{|name| [:undef, str2parsetree(name,o)] }
  if result.size==1
    result.first
  else
    result.unshift :block 
  end
end
unparse(o=default_unparse_options) click to toggle source
# File lib/redparse/node.rb, line 5038
def unparse o=default_unparse_options
  "undef #{map{|name| str_unparse name,o}.join(', ')}"
end