Module: MotionBlender::Analyzer::Hooker
- Defined in:
- lib/motion_blender/analyzer/hooker.rb
Class Method Summary collapse
Class Method Details
.activate ⇒ Object
10 11 12 |
# File 'lib/motion_blender/analyzer/hooker.rb', line 10 def activate @active = true end |
.active? ⇒ Boolean
6 7 8 |
# File 'lib/motion_blender/analyzer/hooker.rb', line 6 def active? !!@active end |
.clear ⇒ Object
22 23 24 |
# File 'lib/motion_blender/analyzer/hooker.rb', line 22 def clear requires.clear end |
.deactivate ⇒ Object
14 15 16 |
# File 'lib/motion_blender/analyzer/hooker.rb', line 14 def deactivate @active = false end |
.requires ⇒ Object
18 19 20 |
# File 'lib/motion_blender/analyzer/hooker.rb', line 18 def requires @requires ||= Hash.new { |hash, key| hash[key] = [] } end |