Methods
Public Instance methods
[ show source ]
# File lib/spec/mocks/argument_constraint_matchers.rb, line 10
10: def any_args
11: AnyArgsConstraint.new
12: end
[ show source ]
# File lib/spec/mocks/argument_constraint_matchers.rb, line 14
14: def anything
15: AnyArgConstraint.new(nil)
16: end
[ show source ]
# File lib/spec/mocks/argument_constraint_matchers.rb, line 18
18: def boolean
19: BooleanArgConstraint.new(nil)
20: end
Shortcut for creating an instance of Spec::Mocks::DuckTypeArgConstraint
[ show source ]
# File lib/spec/mocks/argument_constraint_matchers.rb, line 6 6: def duck_type(*args) 7: DuckTypeArgConstraint.new(*args) 8: end
[ show source ]
# File lib/spec/mocks/argument_constraint_matchers.rb, line 22
22: def no_args
23: NoArgsConstraint.new
24: end