Sha256: 7804464a989dc800a88a60ec6cdc66feb52716c7c1604c070b5239558163de37

Contents?: true

Size: 366 Bytes

Versions: 11

Compression:

Stored size: 366 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

11 entries across 11 versions & 2 rubygems

Version Path
ruby-graphviz-1.2.5 lib/graphviz/ext.rb
ruby-graphviz-1.2.4 lib/graphviz/ext.rb
ruby-graphviz-1.2.3 lib/graphviz/ext.rb
ruby-graphviz-1.2.2 lib/graphviz/ext.rb
ruby-graphviz-1.2.1 lib/graphviz/ext.rb
ruby-graphviz-1.2.0 lib/graphviz/ext.rb
ruby-graphviz-1.1.0 lib/graphviz/ext.rb
ruby-graphviz_c-1.1.1 lib/graphviz/ext.rb
ruby-graphviz_c-1.1.0 lib/graphviz/ext.rb
ruby-graphviz-1.0.9 lib/graphviz/ext.rb
ruby-graphviz-1.0.8 lib/graphviz/ext.rb