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

#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, #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