class Kalibro::Entities::ModuleNode < Kalibro::Entities::Entity attr_accessor :module, :child def module=(value) @module = to_entity(value, Kalibro::Entities::Module) end def child=(value) @child = to_entity_array(value, Kalibro::Entities::ModuleNode) end def children @child end def children=(children) @child = children end def print cell = "#{@module.name} (#{@module.granularity})" return "" + cell + "
" if @child.nil? id = @module.name "" + "" + "" + cell + "" + "" + "" + "" + "" + "
" + "" + "" + "
" + @child.collect { |child| child.print }.to_s + "
" end end