Class: Handshake::MethodCondition

Inherits:
Object
  • Object
show all
Defined in:
lib/handshake/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.



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

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

Instance Attribute Details

#blockObject

:nodoc:



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

def block
  @block
end

#messageObject

:nodoc:



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

def message
  @message
end