Class: ModSpox::Handlers::Handler
- Inherits:
-
Object
- Object
- ModSpox::Handlers::Handler
- Defined in:
- lib/mod_spox/handlers/Handler.rb
Direct Known Subclasses
BadNick, Bounce, Created, Invite, Join, Kick, LuserChannels, LuserClient, LuserMe, LuserOp, LuserUnknown, Mode, Motd, MyInfo, Names, Nick, NickInUse, Notice, Part, Ping, Pong, Privmsg, Quit, Topic, Welcome, Who, Whois, YourHost
Instance Method Summary collapse
-
#initialize(handlers) ⇒ Handler
constructor
- handlers
-
array of handlers initialize handler and add self to available handlers.
-
#preprocess(data) ⇒ Object
- data
-
any expected data Preprocessing allows for actions to be taken while messages are still in a synchronized state.
-
#process(data) ⇒ Object
- data
-
string of data Process the string and create the proper object.
Constructor Details
#initialize(handlers) ⇒ Handler
- handlers
-
array of handlers
initialize handler and add self to available handlers
11 12 13 |
# File 'lib/mod_spox/handlers/Handler.rb', line 11 def initialize(handlers) raise Exceptions::NotImplemented.new('Method has not been implemented') end |
Instance Method Details
#preprocess(data) ⇒ Object
- data
-
any expected data
Preprocessing allows for actions to be taken while messages are still in a synchronized state
24 25 |
# File 'lib/mod_spox/handlers/Handler.rb', line 24 def preprocess(data) end |
#process(data) ⇒ Object
- data
-
string of data
Process the string and create the proper object
17 18 19 |
# File 'lib/mod_spox/handlers/Handler.rb', line 17 def process(data) raise Exceptions::NotImplemented.new('Method has not been implemented') end |