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
Calls superclass method
RedParse::ListInNode::UnaryStarNode::new
# 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
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