Class: Atheme::Service::Parser

Inherits:
Object
  • Object
show all
Defined in:
lib/atheme/service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeParser

Returns a new instance of Parser.



11
12
13
# File 'lib/atheme/service.rb', line 11

def initialize
  @commands = []
end

Instance Attribute Details

#commandsObject (readonly)

Returns the value of attribute commands.



9
10
11
# File 'lib/atheme/service.rb', line 9

def commands
  @commands
end

#responderObject

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