Class: Leftovers::AST::BlockNode
- Defined in:
- lib/leftovers/ast/block_node.rb
Instance Method Summary collapse
Methods inherited from Node
#arguments, #as_arguments_list, #block_given?, #first, #hash?, #initialize, #kwargs, #name, #parent, #parent=, #path, #positional_arguments, #privacy, #privacy=, #receiver, #scalar?, #second, #sym?, #to_literal_s, #to_s, #to_scalar_value, #to_sym, #updated
Constructor Details
This class inherits a constructor from Leftovers::AST::Node
Instance Method Details
#proc? ⇒ Boolean
6 7 8 9 |
# File 'lib/leftovers/ast/block_node.rb', line 6 def proc? name = first.name name == :lambda || name == :proc end |