Sha256: 822057ecbb7e7703364bc5c705d3e7d7b2133c4c8a3b86cd0a06bf9f7fb0110d

Contents?: true

Size: 339 Bytes

Versions: 2

Compression:

Stored size: 339 Bytes

Contents

# encoding: utf-8

module Rango
  module Templates
    class << self
      # @since 0.0.2
      def engine(name)
        Rango::Templates.const_get(name.capitalize + "Adapter")
      end
    end

    class Adapter
      # @since 0.0.2
      def proceed(io)
        raise "This must be redefined in subclasses!"
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rango-0.1.pre lib/rango/templates/adapter.rb
rango-0.0.4 lib/rango/templates/adapter.rb