Sha256: 306d4bc54a20592872cd3500088ce2c669f582f8139808b50db08b446e34f51f
Contents?: true
Size: 772 Bytes
Versions: 4
Compression:
Stored size: 772 Bytes
Contents
class Object unless defined?(__DIR__) # # This method is convenience for the `File.expand_path(File.dirname(__FILE__))` idiom. # (taken from Michael Fellinger's Ramaze... thanx, dood! :D) # def __DIR__(*args) filename = caller[0][/^(.*):/, 1] dir = File.expand_path(File.dirname(filename)) ::File.expand_path(::File.join(dir, *args.map{|a| a.to_s})) end end end require_wrapper = proc do |mod| #p [:loading, mod] begin require File.join(__DIR__, "epitools", mod) rescue LoadError => e puts "* Error loading epitools/#{mod}: #{e}" end end %w[ metaclass basetypes niceprint string_to_proc ratio path zopen colored clitools permutations ].each do |mod| require_wrapper.call mod end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
epitools-0.4.19 | lib/epitools.rb |
epitools-0.4.18 | lib/epitools.rb |
epitools-0.4.17 | lib/epitools.rb |
epitools-0.4.16 | lib/epitools.rb |