Class: Ajimi::Config
- Inherits:
-
Object
- Object
- Ajimi::Config
- Defined in:
- lib/ajimi/config.rb
Constant Summary collapse
- CONFIG_KEYWORDS =
%i( source target check_root_path pruned_paths ignored_paths ignored_contents pending_paths pending_contents )
Instance Attribute Summary collapse
-
#config ⇒ Object
Returns the value of attribute config.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
- #load_file(path) ⇒ Object
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
6 7 8 |
# File 'lib/ajimi/config.rb', line 6 def initialize @config = {} end |
Instance Attribute Details
#config ⇒ Object
Returns the value of attribute config.
4 5 6 |
# File 'lib/ajimi/config.rb', line 4 def config @config end |
Class Method Details
Instance Method Details
#load_file(path) ⇒ Object
16 17 18 |
# File 'lib/ajimi/config.rb', line 16 def load_file(path) instance_eval(File.read(path), path) if path end |