Method: Textbringer::Utils.get_hooks

Defined in:
lib/textbringer/utils.rb

.get_hooks(local) ⇒ Object



366
367
368
369
370
371
372
# File 'lib/textbringer/utils.rb', line 366

def get_hooks(local)
  if local
    Buffer.current[:hooks] ||= Hash.new { |h, k| h[k] = [] }
  else
    HOOKS
  end
end