Sha256: b99f8d353b69535c0b32e84c334fec28781d42eb5abdb309ee1e51a90d8a1a11
Contents?: true
Size: 291 Bytes
Versions: 1
Compression:
Stored size: 291 Bytes
Contents
Object.class_eval do def require_relative_directory(relative_directory_path) Dir.glob(File.join(File.dirname(caller[0]), relative_directory_path, '*.{ru,rb}')) .sort_by { |file_path| file_path.length } .each { |file_path| Loader::Utils.require(file_path) } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
loader-3.0.0 | lib/loader/core_ext/object.rb |