module RedParse::ListInNode

Constants

LookupNode
OP2CLASS
UnaryOpNode

Public Class Methods

[](*args) click to toggle source
# File lib/redparse/node.rb, line 360
  def self.[](*args) args.extend ListInNode end
  def []=(*args)
    val=args.pop
    #inline symbols as callnodes
    case val
    when Symbol
      val=CallNode[nil,val.to_s]
    when Integer,Float
      val=LiteralNode[val]
    end
    super( *args<<val )
  end
  def ==(other)
    ListInNode===other and super
  end
end

Public Instance Methods

==(other) click to toggle source
Calls superclass method
# File lib/redparse/node.rb, line 372
def ==(other)
  ListInNode===other and super
end
[]=(*args) click to toggle source
Calls superclass method
# File lib/redparse/node.rb, line 361
def []=(*args)
  val=args.pop
  #inline symbols as callnodes
  case val
  when Symbol
    val=CallNode[nil,val.to_s]
  when Integer,Float
    val=LiteralNode[val]
  end
  super( *args<<val )
end