Class: Imagen::Node::Block
Overview
Represents a Ruby block
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#empty_def?, #file_path, #find_all, #first_line, #initialize, #last_line, #line_numbers, #source, #source_lines, #source_lines_with_numbers
Constructor Details
This class inherits a constructor from Imagen::Node::Base
Instance Method Details
#build_from_ast(_ast_node) ⇒ Object
175 176 177 178 |
# File 'lib/imagen/node.rb', line 175 def build_from_ast(_ast_node) super tap { @name = ['block', args_list].compact.join(' ') } end |
#human_name ⇒ Object
180 181 182 |
# File 'lib/imagen/node.rb', line 180 def human_name 'block' end |