Class: Imagen::Node::IMethod
Overview
Represents a Ruby instance method
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#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
155 156 157 158 |
# File 'lib/imagen/node.rb', line 155 def build_from_ast(ast_node) super tap { @name = ast_node.children[0].to_s } end |
#human_name ⇒ Object
160 161 162 |
# File 'lib/imagen/node.rb', line 160 def human_name 'instance method' end |