Class: RedParse::ProcLiteralNode

Inherits:
ValueNode show all
Defined in:
lib/redparse/node.rb,
lib/redparse/ReduceWithsFor_RedParse_1_9.rb,
lib/redparse/ReduceWithsFor_RedParse_1_8.rb

Constant Summary

Constants included from FlattenedIvars

FlattenedIvars::EXCLUDED_IVARS

Instance Attribute Summary

Attributes inherited from Node

#endline, #errors, #offset, #parent, #startline

Attributes included from Stackable::Meta

#boolean_identity_params, #identity_params

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from ValueNode

#lvalue, #reducer_method

Methods inherited from Node

#+, #+@, #==, [], #[]=, #add_parent_links!, #args_rip, #begin_parsetree, #classic_inspect, #data, #deep_copy, #delete_extraneous_ivars!, #delete_linenums!, #depthwalk, #depthwalk_nodes, #error?, #evalable_inspect, #fixup_multiple_assignments!, #fixup_rescue_assignments!, #force_stmt_list_rip, #image, #initialize_ivars, inline_symbols, #inspect, #lhs_unparse, #linerange, #lvalue, #lvars_defined_in, #merge_replacement_session, namelist, #negate, #original_brackets_assign, param_names, #parsetree, #parsetrees, #pretty_print, #prohibit_fixup, #replace_ivars_and_self, #replace_value, #rescue_parsetree, #rfind, #rfind_all, #rgrep, #rip_and_rescues, #rip_explode!, #short_inspect, #stmts_rip, #to_parsetree, #to_parsetree_and_warnings, #to_ruby, #to_s, #unary, #walk, #xform_tree!

Methods included from Stackable::Meta

#build_exemplars, #enumerate_exemplars, #identity_param

Methods included from FlattenedIvars

#flattened_ivars, #flattened_ivars_equal?

Methods included from Stackable

#identity_name

Constructor Details

#initialize(params, other_locals, body) ⇒ ProcLiteralNode

Returns a new instance of ProcLiteralNode.



3463
3464
3465
# File 'lib/redparse/node.rb', line 3463

def initialize(params, other_locals, body)
  @params, @other_locals, @body= params, other_locals, body
end

Class Method Details

.create(arrow, lparen, params, rparen, do_word, body, endword) ⇒ Object



3467
3468
3469
3470
# File 'lib/redparse/node.rb', line 3467

def self.create(arrow, lparen, params, rparen, do_word, body, endword)
  params,other_locals=*params if SequenceNode===params
  new(params,other_locals,body)
end

Instance Method Details

#reducer_identObject



17565
17566
17567
# File 'lib/redparse/ReduceWithsFor_RedParse_1_9.rb', line 17565

def reducer_ident
  :ProcLiteralNode
end

#unparse(o = default_parse_options) ⇒ Object



3472
3473
3474
# File 'lib/redparse/node.rb', line 3472

def unparse o=default_parse_options
  huh
end