Class: RedParse::CallWithBlockNode
- Defined in:
- lib/redparse/node.rb
Overview
class ObjectNode<ValueNode
def initialize
super
end
def to_lisp
"Object"
end
def parsetree(o)
:Object
end
end
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
Instance Method Summary collapse
-
#initialize(call, block) ⇒ CallWithBlockNode
constructor
A new instance of CallWithBlockNode.
- #to_lisp ⇒ Object
Methods inherited from ValueNode
Methods inherited from Node
#+, #+@, #==, [], #[]=, #add_parent_links!, #begin_parsetree, create, #data, #deep_copy, #delete_extraneous_ivars!, #delete_linenums!, #depthwalk, #depthwalk_nodes, #error?, #evalable_inspect, #fixup_multiple_assignments!, #fixup_rescue_assignments!, #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, #to_parsetree, #to_parsetree_and_warnings, #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
Constructor Details
#initialize(call, block) ⇒ CallWithBlockNode
Returns a new instance of CallWithBlockNode.
3266 3267 3268 3269 |
# File 'lib/redparse/node.rb', line 3266 def initialize(call,block) KeywordCall===call and extend KeywordCall super end |
Instance Method Details
#to_lisp ⇒ Object
3271 3272 3273 |
# File 'lib/redparse/node.rb', line 3271 def to_lisp @data.first.to_lisp.chomp!(")")+" #{@data.last.to_lisp})" end |