# File lib/test/unit/attribute.rb, line 18 def method_added(name) super return unless defined?(@current_attributes) attributes = {} kept_attributes = {} @current_attributes.each do |attribute_name, attribute| attributes[attribute_name] = attribute[:value] kept_attributes[attribute_name] = attribute if attribute[:keep] end set_attributes(name, attributes) @current_attributes = kept_attributes end