Class: Handshake::MethodCondition
- Inherits:
-
Object
- Object
- Handshake::MethodCondition
- Defined in:
- lib/handshake.rb
Overview
Specifies a condition on a method. Not for external use.
Instance Attribute Summary collapse
-
#block ⇒ Object
:nodoc:.
-
#message ⇒ Object
:nodoc:.
Instance Method Summary collapse
-
#initialize(message = nil, &block) ⇒ MethodCondition
constructor
A new instance of MethodCondition.
Constructor Details
#initialize(message = nil, &block) ⇒ MethodCondition
Returns a new instance of MethodCondition.
462 463 464 |
# File 'lib/handshake.rb', line 462 def initialize(=nil, &block) @message, @block = , block end |
Instance Attribute Details
#block ⇒ Object
:nodoc:
461 462 463 |
# File 'lib/handshake.rb', line 461 def block @block end |
#message ⇒ Object
:nodoc:
461 462 463 |
# File 'lib/handshake.rb', line 461 def @message end |