Sha256: d093a3383d2ac7960e60246a4ff7f3b54853012071174eb857d3acf6cba30eab

Contents?: true

Size: 969 Bytes

Versions: 1

Compression:

Stored size: 969 Bytes

Contents

module Mocktail
  class Explanation
    extend T::Sig

    attr_reader :reference

    attr_reader :message

    def initialize(reference, message)
      @reference = reference
      @message = message
    end

    def type
      self.class
    end
  end

  class NoExplanation < Explanation
    attr_reader :reference

    def initialize(reference, message)
      @reference = reference
      @message = message
    end
  end

  class DoubleExplanation < Explanation
    attr_reader :reference

    def initialize(reference, message)
      @reference = reference
      @message = message
    end
  end

  class ReplacedTypeExplanation < Explanation
    attr_reader :reference

    def initialize(reference, message)
      @reference = reference
      @message = message
    end
  end

  class FakeMethodExplanation < Explanation
    attr_reader :reference

    def initialize(reference, message)
      @reference = reference
      @message = message
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mocktail-2.0.0 lib/mocktail/value/explanation.rb