Class: Rumbly::Diagram::Debug

Inherits:
Base
  • Object
show all
Defined in:
lib/rumbly/diagram/debug.rb

Instance Attribute Summary

Attributes inherited from Base

#application

Instance Method Summary collapse

Methods inherited from Base

#build, create, #initialize

Constructor Details

This class inherits a constructor from Rumbly::Diagram::Base

Instance Method Details

#finishObject



30
31
32
# File 'lib/rumbly/diagram/debug.rb', line 30

def finish
  puts
end

#middleObject



21
22
23
24
# File 'lib/rumbly/diagram/debug.rb', line 21

def middle
  puts "Relationships:"
  puts
end

#process_klass(klass) ⇒ Object



15
16
17
18
19
# File 'lib/rumbly/diagram/debug.rb', line 15

def process_klass (klass)
  puts "  #{klass.name}"
  klass.attributes.each { |a| puts "    #{a.label}" }
  puts
end

#process_relationship(relationship) ⇒ Object



26
27
28
# File 'lib/rumbly/diagram/debug.rb', line 26

def process_relationship (relationship)
  puts "    #{relationship.label}"
end

#setupObject



8
9
10
11
12
13
# File 'lib/rumbly/diagram/debug.rb', line 8

def setup
  puts "Application: #{application.name}"
  puts
  puts "Classes:"
  puts
end