Sha256: e4e00a9352ff069f0b8d11fc3a038c1ad737cd85a0ea3dd6bb32c643bb81d5d1
Contents?: true
Size: 385 Bytes
Versions: 2
Compression:
Stored size: 385 Bytes
Contents
module S3Ranger def S3Ranger.safe_join(parts) File.join *(parts.select {|v| !v.nil? && !v.empty? }) end # class Object # # note that this method is already defined in Ruby 1.9 # def define_singleton_method(name, callable = nil, &block) # block ||= callable # metaclass = class << self; self; end # metaclass.send(:define_method, name, block) # end # end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
s3ranger-0.2.1 | lib/s3ranger/util.rb |
s3ranger-0.2.0 | lib/s3ranger/util.rb |