Sha256: f26044fbb2a7a018b0ebf21beb8bcae0484e51d3247524557a15df12ef5107ec
Contents?: true
Size: 649 Bytes
Versions: 6
Compression:
Stored size: 649 Bytes
Contents
require 'facets/kernel/require_relative' =begin module Kernel # Require file from same dir as calling script. # # require_local 'templib' # # CREDIT: Paul Brannan # def require_local(fname) #fdir = File.expand_path( File.dirname( caller[0] ) ) fdir = File.dirname( caller[0] ) require( File.join( fdir, fname ) ) end # Load file from same dir as calling script. # # load_local 'templib' # # CREDIT: Paul Brannan # def load_local(fname, safe=nil) #fdir = File.expand_path( File.dirname( caller[0] ) ) fdir = File.dirname( caller[0] ) load( File.join( fdir, fname ), safe ) end end =end
Version data entries
6 entries across 6 versions & 1 rubygems