Class: Saucy::Configuration
- Inherits:
-
Object
- Object
- Saucy::Configuration
- Defined in:
- lib/saucy/configuration.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
11 12 13 14 15 16 |
# File 'lib/saucy/configuration.rb', line 11 def initialize @@manager_email_address = '[email protected]' @@support_email_address = '[email protected]' @@layouts = Layouts.new @@observers = [] end |
Class Method Details
.notify(event, data) ⇒ Object
22 23 24 25 26 |
# File 'lib/saucy/configuration.rb', line 22 def self.notify(event, data) @@observers.each do |observer| observer.send(event, data) end end |
.observe(observer) ⇒ Object
18 19 20 |
# File 'lib/saucy/configuration.rb', line 18 def self.observe(observer) @@observers << observer end |