Method: Handshake::MethodContract#defined?
- Defined in:
- lib/handshake.rb
#defined? ⇒ Boolean
Returns true only if this MethodContract has been set up to check for one or more contract conditions.
410 411 412 413 414 |
# File 'lib/handshake.rb', line 410 def defined? [ preconditions, postconditions, accepts, returns ].any? do |ary| not ary.empty? end end |