Sha256: d4291c7ec68c57da634879eaaf8f20e389fc79cbac77b4edbcde7b128b3b50f0

Contents?: true

Size: 437 Bytes

Versions: 21

Compression:

Stored size: 437 Bytes

Contents

# frozen_string_literal: true

class Sinclair
  module Matchers
    # @api private
    # @author darthjee
    # @abstract
    #
    # Base class for add_method_to matcher
    class AddMethodTo < Base
      include MethodTo

      private

      # @private
      #
      # Checks if a method was added (didn't exist before)
      #
      # @return Boolean
      def check
        !initial_state && final_state
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
sinclair-2.1.1 lib/sinclair/matchers/add_method_to.rb
sinclair-2.1.0 lib/sinclair/matchers/add_method_to.rb
sinclair-2.0.1 lib/sinclair/matchers/add_method_to.rb
sinclair-2.0.0 lib/sinclair/matchers/add_method_to.rb
sinclair-1.16.3 lib/sinclair/matchers/add_method_to.rb
sinclair-1.16.2 lib/sinclair/matchers/add_method_to.rb
sinclair-1.16.1 lib/sinclair/matchers/add_method_to.rb
sinclair-1.16.0 lib/sinclair/matchers/add_method_to.rb
sinclair-1.15.0 lib/sinclair/matchers/add_method_to.rb
sinclair-1.14.2 lib/sinclair/matchers/add_method_to.rb
sinclair-1.14.1 lib/sinclair/matchers/add_method_to.rb
sinclair-1.14.0 lib/sinclair/matchers/add_method_to.rb
sinclair-1.13.0 lib/sinclair/matchers/add_method_to.rb
sinclair-1.12.1 lib/sinclair/matchers/add_method_to.rb
sinclair-1.12.0 lib/sinclair/matchers/add_method_to.rb
sinclair-1.11.0 lib/sinclair/matchers/add_method_to.rb
sinclair-1.10.0 lib/sinclair/matchers/add_method_to.rb
sinclair-1.9.0 lib/sinclair/matchers/add_method_to.rb
sinclair-1.8.0 lib/sinclair/matchers/add_method_to.rb
sinclair-1.7.0 lib/sinclair/matchers/add_method_to.rb