Class: EacConfig::LoadPath
- Inherits:
-
Object
- Object
- EacConfig::LoadPath
- Defined in:
- lib/eac_config/load_path.rb
Constant Summary collapse
- ENTRY_PATH =
::EacConfig::EntryPath.assert(%w[load_path])
Instance Method Summary collapse
Instance Method Details
#entry ⇒ Object
12 13 14 |
# File 'lib/eac_config/load_path.rb', line 12 def entry node.self_entry(ENTRY_PATH) end |
#paths ⇒ Array<String>
17 18 19 20 |
# File 'lib/eac_config/load_path.rb', line 17 def paths r = entry.value r.is_a?(::Array) ? r : [] end |
#push(new_path) ⇒ Object
22 23 24 |
# File 'lib/eac_config/load_path.rb', line 22 def push(new_path) entry.value = paths + [new_path] end |