Class: AdLocalize::Serializers::LocalizableStringsSerializer

Inherits:
TemplatedSerializer show all
Defined in:
lib/ad_localize/serializers/localizable_strings_serializer.rb

Constant Summary collapse

LOCALIZABLE_STRINGS_FILENAME =
"Localizable.strings".freeze

Instance Method Summary collapse

Methods inherited from TemplatedSerializer

#render

Constructor Details

#initializeLocalizableStringsSerializer

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