Google

def each each_attribute do |attr| yield attr.expanded_name, attr.value end end