class Haml::Parser

def merge_attributes!(to, from)

Returns:
  • ({String => String,Hash}) - `to`, after being merged

Parameters:
  • from ({String => Object}) -- The attribute hash to merge from
  • to ({String => String,Hash}) -- The attribute hash to merge into
def merge_attributes!(to, from)
  from.keys.each do |key|
    to[key] = merge_value(key, to[key], from[key])
  end
  to
end