Method: Handshake::MethodContract#initialize
- Defined in:
- lib/handshake.rb
#initialize(method_name) ⇒ MethodContract
Returns a new instance of MethodContract.
395 396 397 398 399 |
# File 'lib/handshake.rb', line 395 def initialize(method_name) @method_name = method_name @preconditions, @postconditions = [], [] @accepts, @returns = [], [] end |