class Xumlidot::Diagram

Public Class Methods

new(stack, options) click to toggle source
# 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

Public Instance Methods

draw() click to toggle source
# File lib/xumlidot/diagram.rb, line 14
def draw
  @diagram.draw
end