Class: TelegramBot::Matcher

Inherits:
Object
  • Object
show all
Defined in:
lib/telegram_bot/matcher.rb

Direct Known Subclasses

AnythingMatcher, CommandMatcher, TextMatcher

Instance Method Summary collapse

Instance Method Details

#===(_) ⇒ Object



7
8
9
# File 'lib/telegram_bot/matcher.rb', line 7

def ===(_)
  false
end

#arguments(msg) ⇒ Object



11
12
13
# File 'lib/telegram_bot/matcher.rb', line 11

def arguments(msg)
  []
end

#env(msg) ⇒ Object



3
4
5
# File 'lib/telegram_bot/matcher.rb', line 3

def env(msg)
  msg.extend(BasicObject.new)
end

#extend_env(obj, msg) ⇒ Object



15
16
17
# File 'lib/telegram_bot/matcher.rb', line 15

def extend_env(obj, msg)
  obj
end