class RedParse::ListInNode::UnaryStarNode
Attributes
after_comma[RW]
Public Class Methods
new(*args)
click to toggle source
Calls superclass method
RedParse::ListInNode::UnOpNode::new
# File lib/redparse/node.rb, line 1841 def initialize(*args) options=args.pop if Hash===args.last if args.size==1 op="*@" val=args.first else op,val=*args end op.ident="*@" if op.respond_to? :ident args=[op,val] args.push options if options super(*args) end
Also aliased as: []
Public Instance Methods
all_current_lvars()
click to toggle source
# File lib/redparse/node.rb, line 1863 def all_current_lvars val.respond_to?(:all_current_lvars) ? val.all_current_lvars : [] end
lvalue_parsetree(o)
click to toggle source
# File lib/redparse/node.rb, line 1869 def lvalue_parsetree o val.lvalue_parsetree(o) end
parsetree(o)
click to toggle source
# File lib/redparse/node.rb, line 1859 def parsetree(o) [:splat, val.rescue_parsetree(o)] end
unparse(o=default_unparse_options)
click to toggle source
# File lib/redparse/node.rb, line 1875 def unparse o=default_unparse_options "*"+val.unparse(o) end