Sha256: 23e9f388cd730cb7c6fa3f6117a127789f3f32e12e8923c11d83057ec4c6caa3
Contents?: true
Size: 341 Bytes
Versions: 4
Compression:
Stored size: 341 Bytes
Contents
# Extentions to the core `URI` module # module URI # Given a URI path, determine whether or no it looks like a directory path # # @param [String] uri_path # @return [Boolean] `true` if the path is empty or has a trailing `/`, otherwise `false` # def self.directory?(uri_path) uri_path.empty? || uri_path[-1] == "/" end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
mango-0.9.0 | lib/mango/core_ext/uri.rb |
mango-0.8.0 | lib/mango/core_ext/uri.rb |
mango-0.7.1 | lib/mango/core_ext/uri.rb |
mango-0.7.0 | lib/mango/core_ext/uri.rb |