Sha256: 527d1058eab275ca22b78bcdd147c3dc4e7291bd6d2ff243abd9c56795bff7e4
Contents?: true
Size: 495 Bytes
Versions: 2
Compression:
Stored size: 495 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) && (self == '') return false end true end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sym-3.0.2 | lib/sym/extensions/stdlib.rb |
sym-3.0.1 | lib/sym/extensions/stdlib.rb |