Class: RubyToUML::UMLInfoGenerator::ASTProcessor

Inherits:
Parser::AST::Processor
  • Object
show all
Includes:
ClassAndRelationshipsProcessor, ModuleProcesor, ProcessorHelpers
Defined in:
lib/ruby_to_uml/uml_info_generator/ast_processor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from ModuleProcesor

#on_module

Methods included from ClassAndRelationshipsProcessor

#on_class

Constructor Details

#initializeASTProcessor

Returns a new instance of ASTProcessor.



9
10
11
12
13
# File 'lib/ruby_to_uml/uml_info_generator/ast_processor.rb', line 9

def initialize
  @classes = []
  @modules = []
  @relationships = []
end

Instance Attribute Details

#classesObject (readonly)

Returns the value of attribute classes.



7
8
9
# File 'lib/ruby_to_uml/uml_info_generator/ast_processor.rb', line 7

def classes
  @classes
end

#modulesObject (readonly)

Returns the value of attribute modules.



7
8
9
# File 'lib/ruby_to_uml/uml_info_generator/ast_processor.rb', line 7

def modules
  @modules
end

#relationshipsObject (readonly)

Returns the value of attribute relationships.



7
8
9
# File 'lib/ruby_to_uml/uml_info_generator/ast_processor.rb', line 7

def relationships
  @relationships
end