Class: Pug::Interfaces::Client
- Inherits:
-
Object
- Object
- Pug::Interfaces::Client
- Defined in:
- lib/pug/interfaces/client.rb
Overview
Abstract interface for a Client that Pug can talk to such as Telegram or Terminal
Direct Known Subclasses
Instance Method Summary collapse
-
#listen {|text| ... } ⇒ Object
Listens for and passes text via a block.
-
#send_message(message) ⇒ void
Sends a message to the User via the Client.
Instance Method Details
#listen {|text| ... } ⇒ Object
Listens for and passes text via a block
10 11 12 |
# File 'lib/pug/interfaces/client.rb', line 10 def listen raise NoMethodError end |
#send_message(message) ⇒ void
This method returns an undefined value.
Sends a message to the User via the Client
17 18 19 |
# File 'lib/pug/interfaces/client.rb', line 17 def () # rubocop:disable UnusedMethodArgument raise NoMethodError end |