Module: RubyToUML::UMLInfoGenerator::ModuleProcesor

Included in:
ASTProcessor
Defined in:
lib/ruby_to_uml/uml_info_generator/processor_helpers.rb

Instance Method Summary collapse

Instance Method Details

#on_module(node) ⇒ Object



172
173
174
175
176
177
178
179
180
181
# File 'lib/ruby_to_uml/uml_info_generator/processor_helpers.rb', line 172

def on_module(node)
  module_name            = NodeFinder.module_name(node)
  module_body_node       = BodyNodeWrapper.new(NodeFinder.module_body(node))
  instance_methods_info  = module_body_node.array_operation(&instance_methods_closure)
  singleton_methods_info = module_body_node.array_operation(&singleton_methods_closure)

  add_module(module_name, instance_methods_info, singleton_methods_info)

  node.updated(nil, process_all(node))
end