Class: Web47core::Config

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/web47core/config.rb

Overview

Configuration for the Web47Core platform

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

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_modelsObject

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_modelsObject

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

Returns:

  • (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

Returns:

  • (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