Class: EacConfig::LoadPath
- Inherits:
-
Object
- Object
- EacConfig::LoadPath
- Defined in:
- lib/eac_config/load_path.rb
Constant Summary collapse
Instance Method Summary collapse
Instance Method Details
#entry ⇒ Object
9 10 11 |
# File 'lib/eac_config/load_path.rb', line 9 def entry node.self_entry(ENTRY_PATH) end |
#paths ⇒ Array<String>
14 15 16 17 |
# File 'lib/eac_config/load_path.rb', line 14 def paths r = entry.value r.is_a?(::Array) ? r : [] end |
#push(new_path) ⇒ Object
19 20 21 |
# File 'lib/eac_config/load_path.rb', line 19 def push(new_path) entry.value = paths + [new_path] end |