def flattrize(hsh)
      config = {}
      hsh.to_hash.each { |k, v|
        if new_key = k.to_s.match(/\Aflattr_(.*)\z/)
          config[new_key[1]] = v
        else
          config[k] = v
        end
      }

      config
    end
def flattrize(hsh)
      config = {}
      hsh.to_hash.each { |k, v|
        if new_key = k.to_s.match(/\Aflattr_(.*)\z/)
          config[new_key[1]] = v
        else
          config[k] = v
        end
      }

      config
    end
Removes all leading "flattr_" from the keys of the given hash.

   flattrize({ 'octopod' => 'awesome', 'flattr_uid' => 'pattex' })
   => { "octopod" => "awesome", "uid" => "pattex" }