module Sinatra::ConfigFile
def environment_keys?(hash)
Returns true if supplied with a hash that has any recognized
def environment_keys?(hash) hash.is_a?(Hash) && hash.any? { |k, _| environments.include?(k.to_s) } end
def environment_keys?(hash) hash.is_a?(Hash) && hash.any? { |k, _| environments.include?(k.to_s) } end