Sha256: 6014ea89a3b64dda2d8dddbd6449ac1c0c1aebfc0dd16b9f221bddd7ea10cc77

Contents?: true

Size: 717 Bytes

Versions: 7

Compression:

Stored size: 717 Bytes

Contents

# encoding: utf-8
#
# This file is part of the mbrao gem. Copyright (C) 2013 and above Shogun <shogun_panda@me.com>.
# 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

7 entries across 7 versions & 1 rubygems

Version Path
mbrao-1.2.0 lib/mbrao/rendering_engines/base.rb
mbrao-1.1.1 lib/mbrao/rendering_engines/base.rb
mbrao-1.1.0 lib/mbrao/rendering_engines/base.rb
mbrao-1.0.3 lib/mbrao/rendering_engines/base.rb
mbrao-1.0.2 lib/mbrao/rendering_engines/base.rb
mbrao-1.0.1 lib/mbrao/rendering_engines/base.rb
mbrao-1.0.0 lib/mbrao/rendering_engines/base.rb