Class: Clamsy::BundledFileConfig
- Inherits:
-
Object
- Object
- Clamsy::BundledFileConfig
- Includes:
- Configuration, FileSystemSupport
- Defined in:
- lib/clamsy/configuration.rb
Constant Summary
Constants included from Configuration
Configuration::ENV_REPLACE_PATTERN
Instance Attribute Summary collapse
-
#config_file ⇒ Object
Returns the value of attribute config_file.
Instance Method Summary collapse
-
#initialize(config) ⇒ BundledFileConfig
constructor
A new instance of BundledFileConfig.
Methods included from FileSystemSupport
#file_must_exist!, #tmp_file, #trash_tmp_files
Methods included from Configuration
merge_configs, #method_missing, new, platform, ruby_platform
Constructor Details
#initialize(config) ⇒ BundledFileConfig
Returns a new instance of BundledFileConfig.
98 99 100 101 102 103 104 105 106 |
# File 'lib/clamsy/configuration.rb', line 98 def initialize(config) initialize_config_vars(config) @config_file = config['config_file'] @configs = { :default => self, :user_proc => new_proc_config, :user_file => new_user_config(@config_file) } end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Clamsy::Configuration
Instance Attribute Details
#config_file ⇒ Object
Returns the value of attribute config_file.
96 97 98 |
# File 'lib/clamsy/configuration.rb', line 96 def config_file @config_file end |