Class: MessageFactory::Handlers::Handler
- Inherits:
-
Object
- Object
- MessageFactory::Handlers::Handler
- Defined in:
- lib/messagefactory/Handler.rb
Direct Known Subclasses
BadNick, Bounce, Created, Invite, Inviting, Join, Kick, LuserChannels, Mode, Names, Nick, Notice, Part, Ping, Pong, Privmsg, Quit, Welcome, Who, Whois, YourHost
Instance Method Summary collapse
-
#process(data) ⇒ Object
- data
-
string of data Process string and create proper message.
-
#types_process ⇒ Object
Returns symbol or array of symbols of allowed message types.
Instance Method Details
#process(data) ⇒ Object
- data
-
string of data
Process string and create proper message
27 28 29 |
# File 'lib/messagefactory/Handler.rb', line 27 def process(data) raise NotImplementedError.new end |
#types_process ⇒ Object
Returns symbol or array of symbols of allowed message types
21 22 23 |
# File 'lib/messagefactory/Handler.rb', line 21 def types_process raise NotImplementedError.new end |