class TelegramBot::EventHandler::Handler

Attributes

action[RW]
matcher[RW]
pass[RW]

Public Class Methods

new(matcher, action, pass) click to toggle source
# File lib/telegram_bot/handler.rb, line 12
def initialize(matcher, action, pass)
  @matcher = matcher
  @action  = action
  @pass    = pass
end

Public Instance Methods

===(msg) click to toggle source
# File lib/telegram_bot/handler.rb, line 22
def ===(msg)
  @matcher === msg
end
arguments(msg) click to toggle source
# File lib/telegram_bot/handler.rb, line 26
def arguments(msg)
  @matcher.arguments(msg)
end
pass?() click to toggle source
# File lib/telegram_bot/handler.rb, line 18
def pass?
  @pass
end