Sha256: 6e2e97af71cff8ddfd86e9703af2234af56423ebce08b9dc27034be4e3c15d4b

Contents?: true

Size: 525 Bytes

Versions: 13

Compression:

Stored size: 525 Bytes

Contents

module PolyglotIos
  module Serializer
    module Language
      class Base
        include ERB::Util
        attr_accessor :languages

        def initialize(languages)
          @languages = languages
        end
        
        def render()
          ERB.new(template, trim_mode: '-').result(binding)
        end

        def template()
          fail NotImplementedError, 'Abstract Method'
        end

        def save(path)
          fail NotImplementedError, 'Abstract Method'
        end

      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
ios_polyglot_cli-2.8.0 lib/ios_polyglot_cli/serializers/languages/languages_serializer.rb
ios_polyglot_cli-2.7.3 lib/ios_polyglot_cli/serializers/languages/languages_serializer.rb
ios_polyglot_cli-2.7.2 lib/ios_polyglot_cli/serializers/languages/languages_serializer.rb
ios_polyglot_cli-2.7.1 lib/ios_polyglot_cli/serializers/languages/languages_serializer.rb
ios_polyglot_cli-2.7.0 lib/ios_polyglot_cli/serializers/languages/languages_serializer.rb
ios_polyglot_cli-2.6.3 lib/ios_polyglot_cli/serializers/languages/languages_serializer.rb
ios_polyglot_cli-2.6.2 lib/ios_polyglot_cli/serializers/languages/languages_serializer.rb
ios_polyglot_cli-2.6.1 lib/ios_polyglot_cli/serializers/languages/languages_serializer.rb
ios_polyglot_cli-2.6.0 lib/ios_polyglot_cli/serializers/languages/languages_serializer.rb
ios_polyglot_cli-2.5.1 lib/ios_polyglot_cli/serializers/languages/languages_serializer.rb
ios_polyglot_cli-2.5.0 lib/ios_polyglot_cli/serializers/languages/languages_serializer.rb
ios_polyglot_cli-2.4.0 lib/ios_polyglot_cli/serializers/languages/languages_serializer.rb
ios_polyglot_cli-2.3.0 lib/ios_polyglot_cli/serializers/languages/languages_serializer.rb