class RedParse::ListInNode::DanglingStarNode

Attributes

offset[R]

Public Class Methods

create(star,var=nil) click to toggle source
# File lib/redparse/node.rb, line 1887
def self.create(star,var=nil)
  DanglingStarNode.new(star,var)
end
new(star,var=nil) click to toggle source

param_names :op,:val

# File lib/redparse/node.rb, line 1882
def initialize(star,var=nil)
  @offset= star.offset if star.respond_to? :offset
  @startline=@endline=star.startline if star.respond_to? :startline
  super('*@',var||VarNode[''])
end

Public Instance Methods

lvalue_parsetree(o)
Alias for: parsetree
lvars_defined_in() click to toggle source
# File lib/redparse/node.rb, line 1892
def lvars_defined_in; [] end
parsetree(o) click to toggle source
# File lib/redparse/node.rb, line 1893
def parsetree(o); [:splat] end
Also aliased as: lvalue_parsetree
unparse(o=nil) click to toggle source
# File lib/redparse/node.rb, line 1896
def unparse(o=nil); "* "; end