Module: TrelloDXY::Utils
- Defined in:
- lib/trello_dxy/utils.rb
Class Method Summary collapse
Class Method Details
.gem_libdir ⇒ Object
3 4 5 6 7 8 |
# File 'lib/trello_dxy/utils.rb', line 3 def self.gem_libdir t = ["#{File.dirname(File.expand_path($0))}/../lib/#{Meta::NAME}", "#{Gem.dir}/gems/#{Meta::NAME}-#{Meta::VERSION}/lib/#{Meta::NAME}"] t.each {|i| return i if File.readable?(i) } raise "both paths are invalid: #{t}" end |