Class: Atheme::Service::Parser
- Inherits:
-
Object
- Object
- Atheme::Service::Parser
- Defined in:
- lib/atheme/service.rb
Instance Attribute Summary collapse
-
#commands ⇒ Object
readonly
Returns the value of attribute commands.
-
#responder ⇒ Object
Returns the value of attribute responder.
Instance Method Summary collapse
-
#initialize ⇒ Parser
constructor
A new instance of Parser.
- #register_command(command) ⇒ Object
Constructor Details
#initialize ⇒ Parser
Returns a new instance of Parser.
11 12 13 |
# File 'lib/atheme/service.rb', line 11 def initialize @commands = [] end |
Instance Attribute Details
#commands ⇒ Object (readonly)
Returns the value of attribute commands.
9 10 11 |
# File 'lib/atheme/service.rb', line 9 def commands @commands end |
#responder ⇒ Object
Returns the value of attribute responder.
8 9 10 |
# File 'lib/atheme/service.rb', line 8 def responder @responder end |
Instance Method Details
#register_command(command) ⇒ Object
15 16 17 |
# File 'lib/atheme/service.rb', line 15 def register_command(command) @commands << command end |