Class: Xumlidot::Diagram

Inherits:
Object
  • Object
show all
Defined in:
lib/xumlidot/diagram.rb,
lib/xumlidot/diagram/dot.rb,
lib/xumlidot/diagram/xmi.rb,
lib/xumlidot/diagram/xmi/id.rb,
lib/xumlidot/diagram/dot/klass.rb,
lib/xumlidot/diagram/xmi/klass.rb,
lib/xumlidot/diagram/dot/module.rb,
lib/xumlidot/diagram/xmi/method.rb,
lib/xumlidot/diagram/xmi/argument.rb,
lib/xumlidot/diagram/xmi/constant.rb,
lib/xumlidot/diagram/shared/naming.rb,
lib/xumlidot/diagram/xmi/attribute.rb,
lib/xumlidot/diagram/xmi/superklass.rb

Defined Under Namespace

Modules: Shared Classes: Dot, Xmi

Instance Method Summary collapse

Constructor Details

#initialize(stack, options) ⇒ Diagram

Returns a new instance of Diagram.



6
7
8
9
10
11
12
# File 'lib/xumlidot/diagram.rb', line 6

def initialize(stack, options)
  @diagram = if options[:diagram_type] == :dot
               ::Xumlidot::Diagram::Dot.new(stack, options)
             else
               ::Xumlidot::Diagram::Xmi.new(stack, options)
             end
end

Instance Method Details

#drawObject



14
15
16
# File 'lib/xumlidot/diagram.rb', line 14

def draw
  @diagram.draw
end