Class: GraphViz::Ext

Inherits:
Object show all
Defined in:
lib/graphviz/ext.rb

Class Method Summary (collapse)

Class Method Details

+ (Object) find(ext = nil)



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.expand_path( __FILE__ ) ), "..", "ext" )
  found = myPath
  unless ext.nil?
    Find.find(myPath) do |path|
      found = path if File.basename( path ) == ext
    end
  end

  File.expand_path( found )
end