require 'hammerspace/version'
require 'hammerspace/backend'
require 'hammerspace/hash'

module Hammerspace

  def self.new(path, options={})
    if block_given?
      Hash.new(path, options) { |*args| yield(*args) }
    else
      Hash.new(path, options)
    end
  end

end

require 'hammerspace/version'
require 'hammerspace/backend'
require 'hammerspace/hash'

module Hammerspace

  def self.new(path, options={}, &block)
    Hash.new(path, options, &block)
  end

end

Simplify block pass-through at module level
Simplify block pass-through at module level
