Class: HookR::NullHook

Inherits:
Object
  • Object
show all
Defined in:
lib/hookr.rb

Overview

A null object class for terminating Hook inheritance chains

Instance Method Summary collapse

Instance Method Details

#each_callback(&block) ⇒ Object



454
455
456
# File 'lib/hookr.rb', line 454

def each_callback(&block)
  # NOOP
end

#each_callback_reverse(&block) ⇒ Object



458
459
460
# File 'lib/hookr.rb', line 458

def each_callback_reverse(&block)
  # NOOP
end

#execute_callbacks(event) ⇒ Object



462
463
464
# File 'lib/hookr.rb', line 462

def execute_callbacks(event)
  # NOOP
end

#root?Boolean

Returns:

  • (Boolean)


474
475
476
# File 'lib/hookr.rb', line 474

def root?
  true
end

#terminal?Boolean

Returns:

  • (Boolean)


470
471
472
# File 'lib/hookr.rb', line 470

def terminal?
  true
end

#total_callbacksObject



466
467
468
# File 'lib/hookr.rb', line 466

def total_callbacks
  0
end