Method: RC::Properties#load_index
- Defined in:
- lib/rc/properties.rb
#load_index ⇒ Object (private)
86 87 88 89 90 91 92 93 94 95 96 97 |
# File 'lib/rc/properties.rb', line 86 def load_index index = {} file = File.join(root, '.index') if File.exist?(file) begin index = YAML.load_file(file) rescue SyntaxError => error warn error.to_s end end index end |