Class: AdLocalize::Serializers::LocalizableStringsdictSerializer

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

Constant Summary collapse

LOCALIZABLE_STRINGSDICT_FILENAME =
"Localizable.stringsdict".freeze

Instance Method Summary collapse

Methods inherited from TemplatedSerializer

#render

Constructor Details

#initializeLocalizableStringsdictSerializer

Returns a new instance of LocalizableStringsdictSerializer.



7
8
9
# File 'lib/ad_localize/serializers/localizable_stringsdict_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_stringsdict_serializer.rb', line 11

def configure(export_request:)
  @sanitizer.should_auto_escape_percent = export_request.auto_escape_percent
end