Sha256: c8607456731473bd75b1f0563d3b1edf9fa4b692550faeb15b12c5f6de1c56e4

Contents?: true

Size: 372 Bytes

Versions: 16

Compression:

Stored size: 372 Bytes

Contents

require 'find'

class GraphViz
  class Ext
    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
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
ruby-graphviz-1.0.7 lib/graphviz/ext.rb
ruby-graphviz-1.0.6 lib/graphviz/ext.rb
ruby-graphviz-1.0.5 lib/graphviz/ext.rb
ruby-graphviz-1.0.4 lib/graphviz/ext.rb
ruby-graphviz-1.0.3 lib/graphviz/ext.rb
ruby-graphviz-1.0.2 lib/graphviz/ext.rb
ruby-graphviz-1.0.1 lib/graphviz/ext.rb
ruby-graphviz-1.0.0 lib/graphviz/ext.rb
ruby-graphviz-0.9.21 lib/graphviz/ext.rb
ruby-graphviz-0.9.20 lib/graphviz/ext.rb
ruby-graphviz-0.9.19 lib/graphviz/ext.rb
ruby-graphviz-0.9.18 lib/graphviz/ext.rb
ruby-graphviz-0.9.17 lib/graphviz/ext.rb
ruby-graphviz-0.9.16 lib/graphviz/ext.rb
ruby-graphviz-0.9.15 lib/graphviz/ext.rb
ruby-graphviz-0.9.14 lib/graphviz/ext.rb