Module: MotionBlender::Analyzer::Hooker

Defined in:
lib/motion_blender/analyzer/hooker.rb

Class Method Summary collapse

Class Method Details

.activateObject



10
11
12
# File 'lib/motion_blender/analyzer/hooker.rb', line 10

def activate
  @active = true
end

.active?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/motion_blender/analyzer/hooker.rb', line 6

def active?
  !!@active
end

.clearObject



22
23
24
# File 'lib/motion_blender/analyzer/hooker.rb', line 22

def clear
  requires.clear
end

.deactivateObject



14
15
16
# File 'lib/motion_blender/analyzer/hooker.rb', line 14

def deactivate
  @active = false
end

.requiresObject



18
19
20
# File 'lib/motion_blender/analyzer/hooker.rb', line 18

def requires
  @requires ||= Hash.new { |hash, key| hash[key] = [] }
end