Something like this?

```ruby
  def initialize(hash = {})
    hash.each_pair do |attr, val|
      begin
      self.send("#{attr}=", val)
      rescue NoMethodError
        raise "Unknown key #{attr} found in liftoffrc!"
      end
    end
  end
```