Class: ConfigPlus::Config
- Inherits:
-
Object
- Object
- ConfigPlus::Config
- Defined in:
- lib/config_plus/config.rb
Instance Attribute Summary collapse
-
#config_method ⇒ Object
Returns the value of attribute config_method.
-
#extension ⇒ Object
Returns the value of attribute extension.
- #loader_logic ⇒ Object
-
#namespace ⇒ Object
Returns the value of attribute namespace.
-
#root_dir ⇒ Object
Returns the value of attribute root_dir.
-
#source ⇒ Object
Returns the value of attribute source.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
- #loader ⇒ Object
Constructor Details
Instance Attribute Details
#config_method ⇒ Object
Returns the value of attribute config_method.
3 4 5 |
# File 'lib/config_plus/config.rb', line 3 def config_method @config_method end |
#extension ⇒ Object
Returns the value of attribute extension.
3 4 5 |
# File 'lib/config_plus/config.rb', line 3 def extension @extension end |
#loader_logic ⇒ Object
25 26 27 28 29 30 31 |
# File 'lib/config_plus/config.rb', line 25 def loader_logic name = @loader_logic.to_s.capitalize name = "#{name}LoaderLogic" raise "Unknown loader logic named `#{name}'" unless ConfigPlus::const_defined?(name) ConfigPlus::const_get(name) end |
#namespace ⇒ Object
Returns the value of attribute namespace.
3 4 5 |
# File 'lib/config_plus/config.rb', line 3 def namespace @namespace end |
#root_dir ⇒ Object
Returns the value of attribute root_dir.
3 4 5 |
# File 'lib/config_plus/config.rb', line 3 def root_dir @root_dir end |
#source ⇒ Object
Returns the value of attribute source.
3 4 5 |
# File 'lib/config_plus/config.rb', line 3 def source @source end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
8 9 10 |
# File 'lib/config_plus/config.rb', line 8 def version @version end |