Class: Ww::Dsl::MockDefinition

Inherits:
DefinitionBase show all
Defined in:
lib/ww/dsl/mock_definition.rb

Instance Attribute Summary

Attributes inherited from DefinitionBase

#servlet

Instance Method Summary collapse

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