Module: Jah::Command
- Defined in:
- lib/jah/command.rb
Defined Under Namespace
Modules: ClassMethods
Constant Summary collapse
- COMM =
[]
Class Method Summary collapse
Class Method Details
.find(msg) ⇒ Object
10 11 12 |
# File 'lib/jah/command.rb', line 10 def self.find(msg) COMM.select { |r| r[1] =~ msg.squeeze(" ").strip }.first end |
.included(base) ⇒ Object
6 7 8 |
# File 'lib/jah/command.rb', line 6 def self.included(base) base.extend ClassMethods end |