Class: Spec::Mocks::ArgumentConstraints::RegexpConstraint
- Defined in:
- lib/gems/rspec-1.1.12/lib/spec/mocks/argument_constraints.rb
Instance Method Summary collapse
- #==(value) ⇒ Object
-
#initialize(regexp) ⇒ RegexpConstraint
constructor
A new instance of RegexpConstraint.
Constructor Details
#initialize(regexp) ⇒ RegexpConstraint
Returns a new instance of RegexpConstraint.
38 39 40 |
# File 'lib/gems/rspec-1.1.12/lib/spec/mocks/argument_constraints.rb', line 38 def initialize(regexp) @regexp = regexp end |