method
new
rspec latest stable - Class:
Spec::Mocks::ErrorGenerator
new(target, name, options={})public
No documentation available.
# File lib/spec/mocks/error_generator.rb, line 6
def initialize(target, name, options={})
@declared_as = options[:__declared_as] || 'Mock'
@target = target
@name = name
end