Class: MobyUtil::VerifyBlock
- Defined in:
- lib/tdriver/util/common/kernel.rb
Overview
Helper class to store verify block for constant verifications for sut state
Instance Attribute Summary collapse
-
#block ⇒ Object
Returns the value of attribute block.
-
#expected ⇒ Object
Returns the value of attribute expected.
-
#message ⇒ Object
Returns the value of attribute message.
-
#source ⇒ Object
Returns the value of attribute source.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
Instance Method Summary collapse
-
#initialize(block, expected, message = nil, timeout = nil, source = "") ⇒ VerifyBlock
constructor
A new instance of VerifyBlock.
Constructor Details
#initialize(block, expected, message = nil, timeout = nil, source = "") ⇒ VerifyBlock
Returns a new instance of VerifyBlock.
77 78 79 80 81 82 83 84 85 |
# File 'lib/tdriver/util/common/kernel.rb', line 77 def initialize(block, expected, = nil, timeout = nil, source = "") @block = block @expected = expected @message = @timeout = timeout @source = source end |
Instance Attribute Details
#block ⇒ Object
Returns the value of attribute block.
75 76 77 |
# File 'lib/tdriver/util/common/kernel.rb', line 75 def block @block end |
#expected ⇒ Object
Returns the value of attribute expected.
75 76 77 |
# File 'lib/tdriver/util/common/kernel.rb', line 75 def expected @expected end |
#message ⇒ Object
Returns the value of attribute message.
75 76 77 |
# File 'lib/tdriver/util/common/kernel.rb', line 75 def @message end |
#source ⇒ Object
Returns the value of attribute source.
75 76 77 |
# File 'lib/tdriver/util/common/kernel.rb', line 75 def source @source end |
#timeout ⇒ Object
Returns the value of attribute timeout.
75 76 77 |
# File 'lib/tdriver/util/common/kernel.rb', line 75 def timeout @timeout end |