class Twb::Util::DotFileRenderer
Public Class Methods
new()
click to toggle source
# File lib/twb/util/dotFileRenderer.rb, line 23 def initialize @gvDotLocation = @@gvDotLocation end
Public Instance Methods
gvDotLocation=(location)
click to toggle source
# File lib/twb/util/dotFileRenderer.rb, line 27 def gvDotLocation=(location) @gvDotLocation = location end
render(dotFile, type)
click to toggle source
# File lib/twb/util/dotFileRenderer.rb, line 39 def render(dotFile, type) if @@renderTypes.include?(type) typeParam = '-T' + type.to_s renderedFile = dotFile.sub(/.dot$/,'') + '.' + type.to_s renderedFileParam = '-o' + renderedFile #puts "\t <render cmd> system #{@gvDotLocation}, #{typeParam}, #{renderedFileParam}, #{dotFile} " system @gvDotLocation, typeParam, renderedFileParam, dotFile end return renderedFile end
renderAll(dotFile)
click to toggle source
# File lib/twb/util/dotFileRenderer.rb, line 31 def renderAll(dotFile) renderedFiles = [] @@renderTypes.each do |type| renderedFiles << render(dotFile,type) end return renderedFiles end