module Coupdoeil::Params

def serialize_hash_key(key)

def serialize_hash_key(key)
  case key
  when *RESERVED_KEYS
    raise Coupdoeil::SerializationError, "Can't serialize a Hash with reserved key #{key.inspect}"
  when String, Symbol
    key.to_s
  else
    raise Coupdoeil::SerializationError, "Only string and symbol hash keys may be serialized as hovercard params, but #{key.inspect} is a #{key.class}"
  end
end