Sha256: bb7f28df99329adfb0e9657c5097187b4dcbec5038a1906e998f1e25cae2ed94

Contents?: true

Size: 707 Bytes

Versions: 2

Compression:

Stored size: 707 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 https://choosealicense.com/licenses/mit.
#

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
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mbrao-1.6.2 lib/mbrao/rendering_engines/base.rb
mbrao-1.6.1 lib/mbrao/rendering_engines/base.rb