class GraphViz::Ext

Public Class Methods

find( ext = nil ) click to toggle source
# 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