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.

Since:

  • 0.8.0

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



26
27
28
29
# File 'lib/redmine/hook/listener.rb', line 26

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