module Selenium::WebDriver::HTML5::SharedWebStorage

def each

def each
  return enum_for(:each) unless block_given?
  keys.each do |k|
    yield k, self[k]
  end
end

def empty?

def empty?
  to_a.empty?
end

def fetch(key)

def fetch(key)
  return self[key] if key? key
  return yield(key) if block_given?
  raise KeyError, "missing key #{key.inspect}"
end

def key?(key)

def key?(key)
  keys.include? key
end