Class: Analyst::Entities::CodeBlock

Inherits:
Entity
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/analyst/entities/code_block.rb

Instance Attribute Summary

Attributes inherited from Entity

#ast, #parent

Instance Method Summary collapse

Methods inherited from Entity

#classes, #conditionals, #constant_assignments, #constants, #file_path, #full_name, handles_node, #hashes, #initialize, #inspect, #line_number, #location, #method_calls, #methods, #modules, process, #source, #strings, #top_level_classes, #top_level_constant_assignments, #top_level_constants, #top_level_modules

Constructor Details

This class inherits a constructor from Analyst::Entities::Entity

Instance Method Details

#contentsObject



11
12
13
# File 'lib/analyst/entities/code_block.rb', line 11

def contents
  @contents ||= process_nodes(ast.children)
end