On 6/7/06, Jim Weirich <[EMAIL PROTECTED]> wrote:
>    module Config
>      unless Config.respond_to?(:datadir)
>
>        # Return the path to the data directory associated with the given
>        # package name.  Normally this is just
>        # "#{Config::CONFIG['datadir']}/#{package_name}", but may be
>        # modified by packages like RubyGems to handle versioned data
>        # directories.
>        def Config.datadir(package_name)
>          File.join(CONFIG['datadir'], package_name)
>        end
>
>      end
>    end

Yea! A good solution! I will add it to the next release of Ruby Facets.

  require 'facet/config/datadir'

Thanks Jim,
T.
_______________________________________________
Rubygems-developers mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rubygems-developers

Reply via email to