Class: Queuel::Hash
- Inherits:
-
Hash
- Object
- Hash
- Queuel::Hash
- Defined in:
- lib/queuel/core_ext/hash.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.new(*args, &block) ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/queuel/core_ext/hash.rb', line 3 def self.new(*args, &block) if args.first.is_a?(::Hash) allocate.send(:initialize).replace(args.first) else super *args, &block end end |