class Haml::Options

def for_buffer

Returns:
  • ({Symbol => Object}) - The options hash
def for_buffer
  self.class.buffer_option_keys.inject({}) do |hash, key|
    value = public_send(key)
    if self.class.buffer_defaults[key] != value
      hash[key] = value
    end
    hash
  end
end