class RedParse::ListInNode::ListOpNode
Public Class Methods
new(val1,op,val2)
click to toggle source
Calls superclass method
RedParse::ListInNode::Node::new
# File lib/redparse/node.rb, line 1485 def initialize(val1,op,val2) list=if self.class===val1 Array.new(val1) else [val1] end if self.class===val2 list.push( *val2 ) elsif val2 list.push val2 end super( *list ) end