Sha256: fdfd081c0df545cd96a7a545727b0d2ce8b761b5654bd9b83c4f8dde304a4251
Contents?: true
Size: 494 Bytes
Versions: 14
Compression:
Stored size: 494 Bytes
Contents
module Kernel def require_dir(___dir) @___dir ||= File.dirname(__FILE__) # require files using a consistent order based on the dir/file name. # this should be OS-neutral Dir["#{@___dir}/#{___dir}/*.rb"].sort.each do |___file| require(___file) end end end class Object unless self.methods.include?(:present?) def present? return false if self.nil? if self.is_a?(String) return false if self == '' end true end end end
Version data entries
14 entries across 14 versions & 1 rubygems