Class: Handshake::MethodCondition

Inherits:
Object
  • Object
show all
Defined in:
lib/handshake.rb

Overview

Specifies a condition on a method. Not for external use.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, &block) ⇒ MethodCondition

Returns a new instance of MethodCondition.



462
463
464
# File 'lib/handshake.rb', line 462

def initialize(message=nil, &block)
  @message, @block = message, block
end

Instance Attribute Details

#blockObject

:nodoc:



461
462
463
# File 'lib/handshake.rb', line 461

def block
  @block
end

#messageObject

:nodoc:



461
462
463
# File 'lib/handshake.rb', line 461

def message
  @message
end