Module: DrawUml::Default

Defined in:
lib/draw_uml/default.rb

Constant Summary collapse

DIAGRAM_EXTENSION =
'uml'.freeze
DIAGRAM_PATH =
'doc/diagrams'.freeze
STATIC_PATH =
'public'.freeze
IMAGE_PATH =
'/images/draw-uml'.freeze

Class Method Summary collapse

Class Method Details

.diagram_extensionObject



13
14
15
# File 'lib/draw_uml/default.rb', line 13

def diagram_extension
  DIAGRAM_EXTENSION
end

.diagram_pathObject



17
18
19
# File 'lib/draw_uml/default.rb', line 17

def diagram_path
  DIAGRAM_PATH
end

.image_pathObject



25
26
27
# File 'lib/draw_uml/default.rb', line 25

def image_path
  IMAGE_PATH
end

.optionsObject



9
10
11
# File 'lib/draw_uml/default.rb', line 9

def options
  Hash[DrawUml::Configure.keys.map{|key| [key, send(key)]}]
end

.static_pathObject



21
22
23
# File 'lib/draw_uml/default.rb', line 21

def static_path
  STATIC_PATH
end