module DrawUml::Configure
Attributes
diagram_extension[RW]
diagram_path[RW]
image_path[RW]
static_path[RW]
Public Class Methods
application_layout()
click to toggle source
# File lib/draw_uml/configure.rb, line 30 def application_layout @application_layout ||= File.expand_path('application.html.erb', File.join(self.templates_path, 'layouts')) end
application_template()
click to toggle source
# File lib/draw_uml/configure.rb, line 34 def application_template File.read(self.application_layout) end
dest_path()
click to toggle source
# File lib/draw_uml/configure.rb, line 22 def dest_path @dest_path ||= File.expand_path(File.join(self.static_path, self.image_path)) end
keys()
click to toggle source
# File lib/draw_uml/configure.rb, line 14 def keys @keys ||= %i[diagram_extension diagram_path static_path image_path] end
setup()
click to toggle source
# File lib/draw_uml/configure.rb, line 6 def setup keys.each do |key| instance_variable_set(:"@#{key}", DrawUml::Default.send(key)) end FileUtils.mkdir_p(self.source_path) end
source_path()
click to toggle source
# File lib/draw_uml/configure.rb, line 18 def source_path @source_path ||= File.expand_path(self.diagram_path) end
templates_path()
click to toggle source
# File lib/draw_uml/configure.rb, line 26 def templates_path @templates_path ||= DrawUml.root.join('lib', 'templates').to_s end