Sha256: ce2966d4d72f97b0024893230587ac18d59c58ad891af263b5a368575f7a1563

Contents?: true

Size: 519 Bytes

Versions: 6

Compression:

Stored size: 519 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, nil, '-').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

6 entries across 6 versions & 1 rubygems

Version Path
ios_polyglot_cli-2.2.2 lib/ios_polyglot_cli/serializers/languages/languages_serializer.rb
ios_polyglot_cli-2.2.1 lib/ios_polyglot_cli/serializers/languages/languages_serializer.rb
ios_polyglot_cli-2.2.0 lib/ios_polyglot_cli/serializers/languages/languages_serializer.rb
ios_polyglot_cli-2.1.1 lib/ios_polyglot_cli/serializers/languages/languages_serializer.rb
ios_polyglot_cli-2.1.0 lib/ios_polyglot_cli/serializers/languages/languages_serializer.rb
ios_polyglot_cli-2.0.1 lib/ios_polyglot_cli/serializers/languages/languages_serializer.rb