Module: Tinker::Context

Includes:
Evented
Included in:
Engine, Room
Defined in:
lib/tinker/context.rb

Defined Under Namespace

Modules: ClassMethods, InstanceMethods, Roster

Class Method Summary collapse

Methods included from Evented

#dispatch, #every, #on

Class Method Details

.contextsObject



5
6
7
# File 'lib/tinker/context.rb', line 5

def contexts
  @contexts ||= {}
end

.included(base) ⇒ Object



10
11
12
13
# File 'lib/tinker/context.rb', line 10

def self.included(base)
  base.send :include, InstanceMethods
  base.send :extend, ClassMethods
end