lib/rubo/robot.rb
# Adds a Listener that triggers when anyone enters the room.
#
# @yield [message] A Function that is called with a Response object.
# @yieldparam message [Response]
# @return [void]
Adds a Listener that triggers when anyone enters the room.
Adds a Listener that triggers when anyone enters the room .
def enter(&block)
      @listeners << Listener.new(self,
        ->(message) { message.is_a?(EnterMessage) },
        &block)
    end
def enter ( & block ) @listeners << Listener . new ( self , -> ( message ) { message . is_a? ( EnterMessage ) } , & block ) end
Adds a Listener that triggers when anyone enters the room.
Adds a Listener that triggers when anyone enters the room .
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