method
__declare_double
1.3.1 -
Show latest stable
-
0 notes -
Class: Spec::Mocks::ExampleMethods
- 1.1.4
- 1.1.12
- 1.2.0
- 1.2.8
- 1.3.0 (0)
- 1.3.1 (0)
- What's this?
__declare_double(declared_as, *args)
public
Hide source
# File lib/spec/mocks/example_methods.rb, line 37 def __declare_double(declared_as, *args) # :nodoc: args << {} unless Hash === args.last args.last[:__declared_as] = declared_as Spec::Mocks::Mock.new(*args) end