Class: I18n::Index::Files
Instance Attribute Summary
Attributes inherited from Hash
Instance Method Summary collapse
Methods inherited from Hash
#delete_nested_if, #each_nested, #select_nested, #set_yaml_style, #slice, #slice!, #symbolize_keys, #symbolize_keys!, #to_yaml
Instance Method Details
#[](filename) ⇒ Object
4 5 6 7 8 |
# File 'lib/i18n/index/file.rb', line 4 def [](filename) fetch(filename) rescue store(filename, File.new(filename)) end |