Class: Rucoa::Nodes::SendNode
- Inherits:
-
Base
- Object
- Parser::AST::Node
- Base
- Rucoa::Nodes::SendNode
show all
- Defined in:
- lib/rucoa/nodes/send_node.rb
Instance Method Summary
collapse
Methods inherited from Base
#ancestors, #child_nodes, #descendant_nodes, #each_ancestor, #each_child_node, #each_descendant_node, #include_position?, #initialize, #module_nesting, #namespace, #next_sibling_nodes, #parent, #parent=, #previous_sibling_nodes, #updated
Instance Method Details
20
21
22
|
# File 'lib/rucoa/nodes/send_node.rb', line 20
def arguments
children[2..]
end
|
53
54
55
|
# File 'lib/rucoa/nodes/send_node.rb', line 53
def block
parent if called_with_block?
end
|
#name ⇒ String
66
67
68
|
# File 'lib/rucoa/nodes/send_node.rb', line 66
def name
children[1].to_s
end
|
92
93
94
|
# File 'lib/rucoa/nodes/send_node.rb', line 92
def receiver
children[0]
end
|