Class: Redmine::Hook::Listener

Inherits:
Object
  • Object
show all
Includes:
I18n, Singleton
Defined in:
lib/redmine/hook/listener.rb

Overview

Base class for hook listeners.

Direct Known Subclasses

ViewListener

Class Method Summary collapse

Methods included from I18n

#abbr_day_name, #current_language, #day_letter, #day_name, #find_language, #format_date, #format_hours, #format_time, included, #l, #l_hours, #l_hours_short, #l_or_humanize, #languages_options, #ll, #lu, #month_name, #normalize_float, #set_language_if_valid, #valid_languages

Class Method Details

.inherited(child) ⇒ Object

Registers the listener



28
29
30
31
# File 'lib/redmine/hook/listener.rb', line 28

def self.inherited(child)
  Redmine::Hook.add_listener(child)
  super
end