Module: ME

Defined in:
lib/needabot.rb

Defined Under Namespace

Classes: Me, We

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

Class Method Details

.[](k) ⇒ Object



135
136
137
# File 'lib/needabot.rb', line 135

def self.[] k
	@@ME[k]
end

.canObject



110
111
112
# File 'lib/needabot.rb', line 110

def self.can
	@@CAN
end

.cuesObject



165
166
167
# File 'lib/needabot.rb', line 165

def self.cues
	@@U
end

.handleObject



173
174
175
# File 'lib/needabot.rb', line 173

def self.handle
	@@H
end

.operateObject



181
182
183
# File 'lib/needabot.rb', line 181

def self.operate
	@@O
end

.triggersObject



156
157
158
# File 'lib/needabot.rb', line 156

def self.triggers
	@@T
end

.usObject



132
133
134
# File 'lib/needabot.rb', line 132

def self.us
	@@ME.keys
end

.weObject



147
148
149
# File 'lib/needabot.rb', line 147

def self.we
	@@WE
end