Sha256: d394102bb2831f5fd748b38e4424a44bde4f05fe237bf4965b4fc620b07731fd
Contents?: true
Size: 286 Bytes
Versions: 4
Compression:
Stored size: 286 Bytes
Contents
class Hash class << self def create(*args) if args.is_a?(Array) obj = new args.first.each {|k, v| obj[k] = v } obj else create_186(*args) end end alias create_186 [] alias [] create end end if RUBY_VERSION < "1.8.7"
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
yard-0.5.2 | lib/yard/core_ext/hash.rb |
yard-0.5.1p1 | lib/yard/core_ext/hash.rb |
yard-0.5.1 | lib/yard/core_ext/hash.rb |
yard-0.5.0 | lib/yard/core_ext/hash.rb |