Sha256: f00199748a4c53ef5b17e9a1575ac1b68356f23ce310facd9acbae69408a08cd

Contents?: true

Size: 632 Bytes

Versions: 4

Compression:

Stored size: 632 Bytes

Contents

module Vedeu

  module Renderers

    # A renderer which returns nothing.
    #
    class Null

      include Vedeu::Renderers::RendererOptions

      # Returns a new instance of Vedeu::Renderers::Null.
      #
      # @param options [Hash]
      # @return [Vedeu::Renderers::Null]
      def initialize(options = {})
        @options = options || {}
      end

      # Render a cleared output.
      #
      # @return [String]
      def clear
        ''
      end

      # @param output [Vedeu::Models::Page]
      # @return [String]
      def render(output)
        output
      end

    end # Null

  end # Renderers

end # Vedeu

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
vedeu-0.6.15 lib/vedeu/output/renderers/null.rb
vedeu-0.6.14 lib/vedeu/output/renderers/null.rb
vedeu-0.6.13 lib/vedeu/output/renderers/null.rb
vedeu-0.6.12 lib/vedeu/output/renderers/null.rb