Class: Translate::Storage
- Inherits:
-
Object
- Object
- Translate::Storage
- Defined in:
- lib/translate/storage.rb
Instance Attribute Summary collapse
-
#locale ⇒ Object
Returns the value of attribute locale.
Instance Method Summary collapse
-
#initialize(locale) ⇒ Storage
constructor
A new instance of Storage.
- #write_to_file ⇒ Object
Constructor Details
#initialize(locale) ⇒ Storage
Returns a new instance of Storage.
5 6 7 |
# File 'lib/translate/storage.rb', line 5 def initialize(locale) self.locale = locale.to_sym end |
Instance Attribute Details
#locale ⇒ Object
Returns the value of attribute locale.
3 4 5 |
# File 'lib/translate/storage.rb', line 3 def locale @locale end |