Sha256: e30288fa9808075e260b5a40108ce2fbc5d872703038b2323e635d7adfa34924
Contents?: true
Size: 311 Bytes
Versions: 1
Compression:
Stored size: 311 Bytes
Contents
class Hash def to_h self end unless method_defined :to_h def default_proc_with_nil=(proc) if proc == nil self.default = nil self else self.default_proc_without_nil=(proc) end end if ({}.default_proc = nil rescue true) end Backports.alias_method(ENV, :to_h, :to_hash)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
backports-3.0.0 | lib/backports/2.0.0/hash.rb |