Module: ME
- Defined in:
- lib/needabot.rb
Defined Under Namespace
Constant Summary collapse
- @@CAN =
abilities (defines user abilities)
Hash.new { |h,k| h[k] = lambda { |*a| puts %[==< I >< #{k} >\n#{a}] } }
- @@ME =
user abilities
{}
- @@WE =
We.new
- @@T =
{ ":" => Hash.new { |hh, key| hh[key] = lambda { |*args| puts %[OUR #{args}] } }, "!" => Hash.new { |hh, key| hh[key] = lambda { |*args| puts %[DO #{args}] } }, "@" => Hash.new { |hh, key| hh[key] = lambda { |*args| puts %[AT #{args}] } } }
- @@U =
{ ":" => Hash.new { |hh, key| hh[key] = lambda { |*args| puts %[OUR #{args}] } }, "!" => Hash.new { |hh, key| hh[key] = lambda { |*args| puts %[DO #{args}] } }, "@" => Hash.new { |hh, key| hh[key] = lambda { |*args| puts %[AT #{args}] } } }
- @@H =
{ ":" => Hash.new { |hh, key| hh[key] = lambda { |*args| puts %[OUR #{args}] } }, "!" => Hash.new { |hh, key| hh[key] = lambda { |*args| puts %[DO #{args}] } }, "@" => Hash.new { |hh, key| hh[key] = lambda { |*args| puts %[AT #{args}] } } }
- @@O =
{ ":" => Hash.new { |hh, key| hh[key] = lambda { |*args| puts %[OUR #{args}] } }, "!" => Hash.new { |hh, key| hh[key] = lambda { |*args| puts %[DO #{args}] } }, "@" => Hash.new { |hh, key| hh[key] = lambda { |*args| puts %[AT #{args}] } } }
Class Method Summary collapse
- .[](k) ⇒ Object
- .can ⇒ Object
- .cues ⇒ Object
- .handle ⇒ Object
- .operate ⇒ Object
- .triggers ⇒ Object
- .us ⇒ Object
- .we ⇒ Object
Class Method Details
.[](k) ⇒ Object
135 136 137 |
# File 'lib/needabot.rb', line 135 def self.[] k @@ME[k] end |
.can ⇒ Object
110 111 112 |
# File 'lib/needabot.rb', line 110 def self.can @@CAN end |
.cues ⇒ Object
165 166 167 |
# File 'lib/needabot.rb', line 165 def self.cues @@U end |
.handle ⇒ Object
173 174 175 |
# File 'lib/needabot.rb', line 173 def self.handle @@H end |
.operate ⇒ Object
181 182 183 |
# File 'lib/needabot.rb', line 181 def self.operate @@O end |
.triggers ⇒ Object
156 157 158 |
# File 'lib/needabot.rb', line 156 def self.triggers @@T end |
.us ⇒ Object
132 133 134 |
# File 'lib/needabot.rb', line 132 def self.us @@ME.keys end |
.we ⇒ Object
147 148 149 |
# File 'lib/needabot.rb', line 147 def self.we @@WE end |