Method: Localeapp::SyncFile#refresh
- Defined in:
- lib/localeapp/sync_file.rb
#refresh ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/localeapp/sync_file.rb', line 5 def refresh @data = if File.exist?(path) SyncData.from_hash( Localeapp.load_yaml_file(path) ) else SyncData.default end end |