Class: LocalizableModel::AnyLocalizer
- Inherits:
-
Object
- Object
- LocalizableModel::AnyLocalizer
- Defined in:
- lib/localizable_model/any_localizer.rb
Instance Attribute Summary collapse
-
#record ⇒ Object
readonly
Returns the value of attribute record.
Instance Method Summary collapse
-
#initialize(record) ⇒ AnyLocalizer
constructor
A new instance of AnyLocalizer.
Constructor Details
#initialize(record) ⇒ AnyLocalizer
Returns a new instance of AnyLocalizer.
7 8 9 10 |
# File 'lib/localizable_model/any_localizer.rb', line 7 def initialize(record) @record = record define_localization_methods end |
Instance Attribute Details
#record ⇒ Object (readonly)
Returns the value of attribute record.
5 6 7 |
# File 'lib/localizable_model/any_localizer.rb', line 5 def record @record end |