Class: Web47core::Config
- Inherits:
-
Object
- Object
- Web47core::Config
- Includes:
- Singleton
- Defined in:
- lib/web47core/config.rb
Overview
Configuration for the Web47Core platform
Instance Attribute Summary collapse
-
#email_able_models ⇒ Object
Returns the value of attribute email_able_models.
-
#switchboard_able_models ⇒ Object
Returns the value of attribute switchboard_able_models.
Class Method Summary collapse
-
.method_missing(method, *args, &block) ⇒ Object
Provide access to the instance accessors through static methods.
- .respond_to?(method_name, _include_private = false) ⇒ Boolean
- .respond_to_missing?(method_name, _include_private = false) ⇒ Boolean
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
11 12 13 14 |
# File 'lib/web47core/config.rb', line 11 def initialize @email_able_models = [] @switchboard_able_models = [] end |
Instance Attribute Details
#email_able_models ⇒ Object
Returns the value of attribute email_able_models.
9 10 11 |
# File 'lib/web47core/config.rb', line 9 def email_able_models @email_able_models end |
#switchboard_able_models ⇒ Object
Returns the value of attribute switchboard_able_models.
9 10 11 |
# File 'lib/web47core/config.rb', line 9 def switchboard_able_models @switchboard_able_models end |
Class Method Details
.method_missing(method, *args, &block) ⇒ Object
Provide access to the instance accessors through static methods
19 20 21 22 23 24 25 |
# File 'lib/web47core/config.rb', line 19 def self.method_missing(method, *args, &block) if instance.respond_to?(method) instance.send(method, *args) else super end end |
.respond_to?(method_name, _include_private = false) ⇒ Boolean
27 28 29 |
# File 'lib/web47core/config.rb', line 27 def self.respond_to?(method_name, _include_private = false) instance.respond_to?(method_name) || super end |
.respond_to_missing?(method_name, _include_private = false) ⇒ Boolean
31 32 33 |
# File 'lib/web47core/config.rb', line 31 def self.respond_to_missing?(method_name, _include_private = false) instance.respond_to?(method_name) || super end |