Module: MotionBlender::Analyzer::Hooks

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

Instance Method Summary collapse

Instance Method Details

#require(feature) ⇒ Object



28
29
30
31
32
33
34
35
36
# File 'lib/motion_blender/analyzer/hooker.rb', line 28

def require feature
  if Hooker.active?
    super
    src = caller.first.split(':', 2).first
    Hooker.requires[src] << feature
  else
    super
  end
end