Class: Ww::Dsl::MockDefinition
- Inherits:
-
DefinitionBase
- Object
- DefinitionBase
- Ww::Dsl::MockDefinition
- Defined in:
- lib/ww/dsl/mock_definition.rb
Instance Attribute Summary
Attributes inherited from DefinitionBase
Instance Method Summary collapse
-
#initialize(servlet, verification = nil, &block) ⇒ MockDefinition
constructor
A new instance of MockDefinition.
Constructor Details
#initialize(servlet, verification = nil, &block) ⇒ MockDefinition
Returns a new instance of MockDefinition.
7 8 9 10 |
# File 'lib/ww/dsl/mock_definition.rb', line 7 def initialize(servlet, verification = nil, &block) super(servlet) @verification = block_given? ? block : verification end |