lib/graphviz/dot2ruby.rb in ruby-graphviz-1.1.0 vs lib/graphviz/dot2ruby.rb in ruby-graphviz-1.2.0
- old
+ new
@@ -22,10 +22,10 @@
include GraphViz::Utils
def initialize( xGVPath, xOutFile, xOutFormat = nil ) #:nodoc:
paths = (xGVPath.nil?) ? [] : [xGVPath]
@xGvprPath = find_executable( 'gvpr', paths )
- if (@xGvprPath.blank?)
+ if(@xGvprPath.nil?)
raise Exception, "GraphViz is not installed. Please be sure that 'gvpr' is on the search path'"
end
@xOutFile = xOutFile
@xOutFormat = xOutFormat || "_"
@gvprScript = GraphViz::Ext.find( "dot2ruby.g" )