Sha256: 4adaf1e999b2efb6ce2d243974acce34fe472bb85ff377e8e92c8992409236fc
Contents?: true
Size: 340 Bytes
Versions: 63
Compression:
Stored size: 340 Bytes
Contents
# frozen_string_literal: true class Hash class << self def create(*args) if args.first.is_a?(Array) && args.size == 1 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
63 entries across 62 versions & 9 rubygems