Sha256: c599ff2d24a1332d1cee56f370c64e782aa04434efef0439db07b1047282e933
Contents?: true
Size: 493 Bytes
Versions: 2
Compression:
Stored size: 493 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sym-3.0.0 | lib/sym/extensions/stdlib.rb |
sym-2.10.0 | lib/sym/extensions/stdlib.rb |