lib/rspec/sleeping_king_studios/matchers/core/have_writer_matcher.rb
# Checks if the object responds to :expected=. Additionally, if a value
# expectation is set, assigns the value via :expected= and compares the
# subsequent value to the specified value using :expected or the block
# provided to #with.
#
# @param [Object] actual the object to check
#
# @return [Boolean] true if the object responds to :expected= and matches
#    the value expectation (if any); otherwise false
Checks if the object responds to :expected=. Additionally, if a value
expectation is set, assigns the value via :expected= and compares the
subsequent value to the specified value using :expected or the block
provided to #with.
Checks if the object responds to : expected = . Additionally if a value expectation is set assigns the value via : expected = and compares the subsequent value to the specified value using : expected or the block provided to #with .
def matches? actual
      super
      responds_to_writer?(:allow_private => allow_private?)
    end
def matches? actual super responds_to_writer? ( :allow_private => allow_private? ) end
Checks if the object responds to :expected=.
Checks if the object responds to : expected = .
true if the object responds to :expected= and matches the value expectation (if any); otherwise false
true if the object responds to : expected = and matches the value expectation ( if any ) ; otherwise false
Boolean
actual
<not_specific>
<not_specific>
actual the object to check
actual the object to check