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

Version Path
sym-2.8.5 lib/sym/extensions/stdlib.rb
sym-2.8.4 lib/sym/extensions/stdlib.rb
sym-2.8.2 lib/sym/extensions/stdlib.rb
sym-2.8.1 lib/sym/extensions/stdlib.rb
sym-2.8.0 lib/sym/extensions/stdlib.rb
sym-2.7.0 lib/sym/extensions/stdlib.rb
sym-2.6.3 lib/sym/extensions/stdlib.rb
sym-2.6.2 lib/sym/extensions/stdlib.rb
sym-2.6.1 lib/sym/extensions/stdlib.rb
sym-2.6.0 lib/sym/extensions/stdlib.rb
sym-2.5.3 lib/sym/extensions/stdlib.rb
sym-2.5.1 lib/sym/extensions/stdlib.rb
sym-2.5.0 lib/sym/extensions/stdlib.rb
sym-2.4.3 lib/sym/extensions/stdlib.rb