mirror of
https://github.com/dkam/decisiontree.git
synced 2025-12-28 07:04:53 +00:00
Require graphr gem by default instead of checking if graphviz_dot available.
This commit is contained in:
@@ -3,11 +3,7 @@
|
|||||||
### Copyright (c) 2007 Ilya Grigorik <ilya AT igvita DOT com>
|
### Copyright (c) 2007 Ilya Grigorik <ilya AT igvita DOT com>
|
||||||
### Modifed at 2007 by José Ignacio Fernández <joseignacio.fernandez AT gmail DOT com>
|
### Modifed at 2007 by José Ignacio Fernández <joseignacio.fernandez AT gmail DOT com>
|
||||||
|
|
||||||
begin
|
require 'graphr'
|
||||||
require 'graph/graphviz_dot'
|
|
||||||
rescue LoadError
|
|
||||||
STDERR.puts "graph/graphviz_dot not installed, graphing functionality not included."
|
|
||||||
end
|
|
||||||
|
|
||||||
class Object
|
class Object
|
||||||
def save_to_file(filename)
|
def save_to_file(filename)
|
||||||
|
|||||||
Reference in New Issue
Block a user