lib/rubo/robot.rb
# Adds a Listener that triggers when no other text matchers match.
#
# @yield [message] A Function that is called with a Response object.
# @yieldparam message [Response]
# @return [void]
Adds a Listener that triggers when no other text matchers match.
Adds a Listener that triggers when no other text matchers match .
def catch_all(&block)
      listener = Listener.new(self,
        ->(message) { message.is_a?(CatchAllMessage) },
        ->(message) do
          message.message = message.message.message
          callback.call(message)
        end
      )
      @listeners << listener
    end
def catch_all ( & block ) listener = Listener . new ( self , -> ( message ) { message . is_a? ( CatchAllMessage ) } , -> ( message ) do message . message = message . message . message callback . call ( message ) end ) @listeners << listener end
Adds a Listener that triggers when no other text matchers match.
Adds a Listener that triggers when no other text matchers match .
None
void
block
<not_specific>
]
<not_specific>
A Function that is called with a Response object.
A Function that is called with a Response object .
<not_specific>
None