class Inspector::Constraints::Eq
Public Class Methods
new(expected)
click to toggle source
# File lib/inspector/constraints/eq.rb, line 6 def initialize(expected) @expected = expected end
Public Instance Methods
inspect()
click to toggle source
# File lib/inspector/constraints/eq.rb, line 18 def inspect "#<== #{@expected.inspect}>" end
to_s()
click to toggle source
# File lib/inspector/constraints/eq.rb, line 14 def to_s "eq" end
valid?(actual)
click to toggle source
# File lib/inspector/constraints/eq.rb, line 10 def valid?(actual) actual == @expected end