Class: GraphViz::Ext
Class Method Summary collapse
Class Method Details
.find(ext = nil) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/graphviz/ext.rb', line 5 def self.find( ext = nil ) myPath = File.join( File.dirname( File.( __FILE__ ) ), "..", "ext" ) found = myPath unless ext.nil? Find.find(myPath) do |path| found = path if File.basename( path ) == ext end end File.( found ) end |