Class: Xumlidot::Diagram::Xmi::Elements

Inherits:
Array
  • Object
show all
Defined in:
lib/xumlidot/diagram/xmi.rb

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Elements

Returns a new instance of Elements.



16
17
18
19
# File 'lib/xumlidot/diagram/xmi.rb', line 16

def initialize(options)
  super()
  @options = options
end

Instance Method Details

#drawObject



21
22
23
24
25
26
# File 'lib/xumlidot/diagram/xmi.rb', line 21

def draw
  xml = header
  uniq.each { |de| xml += de }
  xml += yield if block_given?
  xml += footer
end