class Bogus::MatchesArgument
Public Class Methods
new(&block)
click to toggle source
# File lib/bogus/stubbing/matchers/matches_argument.rb, line 3 def initialize(&block) @block = block end
Public Instance Methods
==(argument)
click to toggle source
# File lib/bogus/stubbing/matchers/matches_argument.rb, line 7 def ==(argument) @block.call(argument) end