Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Like the UNIX "which" tool, but for Ruby libraries.
Ruby
branch: master

Don't alias require to which any more. Too messy to deal with name co…

…nflicts with Kernel#require

and the magic that Rubygems performs on require.
latest commit 9442e0d88f
Pistos authored

README

= ruby-which

by Pistos
http://github.com/Pistos/ruby-which

For those times when you don't know which version of a library you're
require-ing, or what path on your system it's coming from.  Returns the full
library path if the given library is found in the $LOAD_PATH.

"you need organization..." -- manveru

== Installation

    gem install --source http://gems.github.com Pistos-ruby-which

== Example usage:

    require 'rubygems'
    require 'ruby-which'
    puts Which.which( 'm4dbi' )   #=> /usr/lib/ruby/gems/1.8/gems/m4dbi-0.6.2/lib/m4dbi.rb

Or from your shell:

    rwhich m4dbi
    # Outputs: /usr/lib/ruby/gems/1.8/gems/m4dbi-0.6.2/lib/m4dbi.rb

Something went wrong with that request. Please try again.