# File lib/test/unit/attribute.rb, line 32 def attribute(name, value, options={}, *method_names) unless options.is_a?(Hash) method_names << options options = {} end @current_attributes ||= {} if method_names.empty? @current_attributes[name] = options.merge(:value => value) else method_names.each do |method_name| set_attributes(method_name, {name => value}) end end end