Sha256: a8f03e1a978fdabb9838c2c19599db5cda3ecb2c43a19316d8a0d180c3a52991

Contents?: true

Size: 721 Bytes

Versions: 6

Compression:

Stored size: 721 Bytes

Contents

# encoding: utf-8
#
# This file is part of the mbrao gem. Copyright (C) 2013 and above Shogun <shogun@cowtech.it>.
# Licensed under the MIT license, which can be found at http://www.opensource.org/licenses/mit-license.php.
#

module Mbrao
  # Engines used to render contents with metadata.
  module RenderingEngines
    # A base class for all renderers.
    class Base
      # Renders a content.
      #
      # @param _content [Content|String] The content to parse.
      # @param _options [Hash] A list of options for renderer.
      # @param _context [Hash] A context for rendering.
      def render(_content, _options = {}, _context = {})
        raise Mbrao::Exceptions::Unimplemented.new
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mbrao-1.4.4 lib/mbrao/rendering_engines/base.rb
mbrao-1.4.3 lib/mbrao/rendering_engines/base.rb
mbrao-1.4.2 lib/mbrao/rendering_engines/base.rb
mbrao-1.4.1 lib/mbrao/rendering_engines/base.rb
mbrao-1.4.0 lib/mbrao/rendering_engines/base.rb
mbrao-1.3.0 lib/mbrao/rendering_engines/base.rb