Class: Imagen::Node::CMethod
Overview
Represents a Ruby class method
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
151 152 153 154 |
# File 'lib/imagen/node.rb', line 151 def build_from_ast(ast_node) super tap { @name = ast_node.children[1].to_s } end |
#human_name ⇒ Object
156 157 158 |
# File 'lib/imagen/node.rb', line 156 def human_name 'class method' end |