# File lib/rspec/matchers/matcher.rb, line 34 def for_expected(*expected) @expected = expected dup.instance_eval do instance_variables.map {|ivar| ivar.intern}.each do |ivar| instance_variable_set(ivar, nil) unless (PERSISTENT_INSTANCE_VARIABLES + [:@expected]).include?(ivar) end @messages = {} making_declared_methods_public do instance_eval_with_args(*@expected, &@declarations) end self end end