class Pact::ExpectedType

Public Class Methods

new(value) click to toggle source
# File lib/pact/matchers/expected_type.rb, line 6
def initialize value
  @value = value
end

Public Instance Methods

==(other) click to toggle source
# File lib/pact/matchers/expected_type.rb, line 26
def == other
  eq? other
end
as_json(options = {}) click to toggle source
# File lib/pact/matchers/expected_type.rb, line 18
def as_json options = {}
  type
end
eq?(other) click to toggle source
# File lib/pact/matchers/expected_type.rb, line 22
def eq? other
  self.class == other.class && other.type == type
end
to_json(options = {}) click to toggle source
# File lib/pact/matchers/expected_type.rb, line 14
def to_json options = {}
  type
end
to_s() click to toggle source
# File lib/pact/matchers/expected_type.rb, line 30
def to_s
  type
end
type() click to toggle source
# File lib/pact/matchers/expected_type.rb, line 10
def type
  @value.class.name
end