Class: Translate::Storage

Inherits:
Object
  • Object
show all
Defined in:
lib/translate/storage.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(locale) ⇒ Storage



5
6
7
# File 'lib/translate/storage.rb', line 5

def initialize(locale)
  self.locale = locale.to_sym
end

Instance Attribute Details

#localeObject

Returns the value of attribute locale



3
4
5
# File 'lib/translate/storage.rb', line 3

def locale
  @locale
end

Instance Method Details

#write_to_fileObject



9
10
11
# File 'lib/translate/storage.rb', line 9

def write_to_file
  Translate::File.new(file_path).write(keys)
end