class Pug::Interfaces::Client

Abstract interface for a Client that Pug can talk to such as Telegram or Terminal

Public Instance Methods

listen() click to toggle source

Listens for and passes text via a block @yieldparam [String] text

# File lib/pug/interfaces/client.rb, line 10
def listen
  raise NoMethodError
end
send_message(message) click to toggle source

Sends a message to the User via the Client @param message [String] the message to send @return [void]

# File lib/pug/interfaces/client.rb, line 17
def send_message(message) # rubocop:disable UnusedMethodArgument
  raise NoMethodError
end