class RedParse::ListInNode::CommaOpNode
Attributes
lvalue[W]
Public Instance Methods
extract_unbraced_hash()
click to toggle source
# File lib/redparse/node.rb, line 1512 def extract_unbraced_hash param_list=Array.new(self) first=last=nil param_list.each_with_index{|param,i| break first=i if ArrowOpNode===param } (1..param_list.size).each{|i| param=param_list[-i] break last=-i if ArrowOpNode===param } if first arrowrange=first..last arrows=param_list[arrowrange] h=HashLiteralNode.new(nil,arrows,nil) h.offset=arrows.first.offset h.startline=arrows.first.startline h.endline=arrows.last.endline return h,arrowrange end end
image()
click to toggle source
# File lib/redparse/node.rb, line 1501 def image; '(,)' end
lvalue()
click to toggle source
# File lib/redparse/node.rb, line 1505 def lvalue return @lvalue if defined? @lvalue @lvalue=true end
to_lisp()
click to toggle source
# File lib/redparse/node.rb, line 1502 def to_lisp "(#{map{|x| x.to_lisp}.join(" ")})" end