Class: AdLocalize::Serializers::LocalizableStringsSerializer
- Inherits:
-
TemplatedSerializer
- Object
- TemplatedSerializer
- AdLocalize::Serializers::LocalizableStringsSerializer
- Defined in:
- lib/ad_localize/serializers/localizable_strings_serializer.rb
Constant Summary collapse
- LOCALIZABLE_STRINGS_FILENAME =
"Localizable.strings".freeze
Instance Method Summary collapse
- #configure(export_request:) ⇒ Object
-
#initialize ⇒ LocalizableStringsSerializer
constructor
A new instance of LocalizableStringsSerializer.
Methods inherited from TemplatedSerializer
Constructor Details
#initialize ⇒ LocalizableStringsSerializer
Returns a new instance of LocalizableStringsSerializer.
7 8 9 |
# File 'lib/ad_localize/serializers/localizable_strings_serializer.rb', line 7 def initialize super(sanitizer: Sanitizers::IOSSanitizer.new) end |
Instance Method Details
#configure(export_request:) ⇒ Object
11 12 13 |
# File 'lib/ad_localize/serializers/localizable_strings_serializer.rb', line 11 def configure(export_request:) @sanitizer.should_auto_escape_percent = export_request.auto_escape_percent end |