Sha256: 579bd4a96897ebe27073a9b42dca03330cb553a4c02e6479cec9f1367a5b60ef
Contents?: true
Size: 675 Bytes
Versions: 4
Compression:
Stored size: 675 Bytes
Contents
module Kernel # Standard in ruby 1.9. def require_relative(relative_feature) # Adapted from Pragmatic's "Programming Ruby" (since their version was buggy...) file = caller.first.split(/:\d/,2).first if /\A\((.*)\)/ =~ file # eval, etc. raise LoadError, "require_relative is called in #{$1}" end require File.expand_path(relative_feature, File.dirname(file)) end unless method_defined? :require_relative end %w(core_ext module kernel array enumerable enumerator string symbol integer numeric fixnum hash proc binding dir io method regexp struct float object_space argf gc env process).each do |lib| require_relative "backports/#{lib}" end
Version data entries
4 entries across 4 versions & 2 rubygems
Version | Path |
---|---|
marcandre-backports-1.7.0 | lib/backports.rb |
marcandre-backports-1.7.1 | lib/backports.rb |
backports-1.7.1 | lib/backports.rb |
backports-1.7.0 | lib/backports.rb |