class RedParse::ListInNode::AssignmentRhsNode

Public Class Methods

new(*args) click to toggle source
Calls superclass method RedParse::ListInNode::Node::new
# File lib/redparse/node.rb, line 2310
def initialize(*args)
  if args.size==1; super args.first
  else super args[1]
  end
end

Public Instance Methods

is_list() click to toggle source

WITHCOMMAS=UnaryStarNode|CommaOpNode|(CallSiteNode&-{:with_commas=>true})

# File lib/redparse/node.rb, line 2316
      def is_list

        return !(WITHCOMMAS===val)
=begin
        #this should be equivalent, why doesn't it work?
        !(UnaryStarNode===val or
          CommaOpNode===val or
          CallSiteNode===val && val.with_commas==true)
#          CallSiteNode===val && !val.real_parens && val.args.size>0
=end
      end