Class: EacConfig::LoadPath

Inherits:
Object
  • Object
show all
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

#entryObject



9
10
11
# File 'lib/eac_config/load_path.rb', line 9

def entry
  node.self_entry(ENTRY_PATH)
end

#pathsArray<String>

Returns:

  • (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