lib/rspec/sleeping_king_studios/matchers/shared/match_property.rb
# Formats the expected value as a human-readable string. If the value looks
# like an RSpec matcher (it responds to :matches? and :description), calls
# value#description; otherwise calls value#inspect.
#
# @return [String] the value as a human-readable string.
Formats the expected value as a human-readable string. If the value looks
like an RSpec matcher (it responds to :matches. and :description), calls
value#description; otherwise calls value#inspect.
Formats the expected value as a human - readable string . If the value looks like an RSpec matcher ( it responds to : matches . and : description ) calls value#description ; otherwise calls value#inspect .
def value_to_string
      return @value.description if @value.respond_to?(:matches?) && @value.respond_to?(:description)
      @value.inspect
    end
def value_to_string return @value . description if @value . respond_to? ( :matches? ) && @value . respond_to? ( :description ) @value . inspect end
Formats the expected value as a human-readable string.
Formats the expected value as a human - readable string .
the value as a human-readable string.
the value as a human - readable string .
String