class PolyglotFlutter::Serializer::Localization::Base
Attributes
languages[RW]
translation_keys[RW]
Public Class Methods
new(languages: nil, translation_keys: nil, mandatory_language: nil)
click to toggle source
# File lib/flutter_polyglot_cli/serializers/localizations/loc_serializer.rb, line 9 def initialize(languages: nil, translation_keys: nil, mandatory_language: nil) @languages = languages @translation_keys = translation_keys @mandatory_language = mandatory_language end
Public Instance Methods
render()
click to toggle source
# File lib/flutter_polyglot_cli/serializers/localizations/loc_serializer.rb, line 15 def render ERB.new(template, nil, '-').result(binding) end
save(_path)
click to toggle source
# File lib/flutter_polyglot_cli/serializers/localizations/loc_serializer.rb, line 23 def save(_path) raise NotImplementedError, 'Abstract Method' end
template()
click to toggle source
# File lib/flutter_polyglot_cli/serializers/localizations/loc_serializer.rb, line 19 def template raise NotImplementedError, 'Abstract Method' end