Change visibility to private

This commit is contained in:
Michael Miller 2019-08-01 16:17:12 -06:00
parent 4b59dcf142
commit c75fba8076
2 changed files with 3 additions and 3 deletions

View file

@ -18,7 +18,7 @@ module Spectator::Matchers
# Message displayed when the matcher isn't satisifed.
# This is only called when `#matches?` returns false.
abstract def failure_message(actual) : String
private abstract def failure_message(actual) : String
# Message displayed when the matcher isn't satisifed and is negated.
# This is only called when `#does_not_match?` returns false.
@ -26,7 +26,7 @@ module Spectator::Matchers
# A default implementation of this method is provided,
# which causes compilation to fail.
# If the matcher supports negation, it must override this method.
def failure_message_when_negated(actual) : String
private def failure_message_when_negated(actual) : String
{% raise "Negation with #{@type.name} is not supported." %}
end

View file

@ -6,7 +6,7 @@ module Spectator::Matchers
abstract struct ValueMatcher(ExpectedType) < Matcher
# Expected value.
# Sub-types may use this value to test the expectation and generate message strings.
getter expected : TestValue(ExpectedType)
private getter expected : TestValue(ExpectedType)
# Creates the value matcher.
# The expected value is stored for later use.