Sha256: 351c01501fb46c80ae0f5df13fc139872020d7ee16562339a6932c78be0ecf87

Contents?: true

Size: 624 Bytes

Versions: 27

Compression:

Stored size: 624 Bytes

Contents

module Vedeu

  module Renderers

    # A renderer which returns nothing.
    #
    class Null

      include Vedeu::Renderers::Options

      # 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

27 entries across 27 versions & 1 rubygems

Version Path
vedeu-0.6.22 lib/vedeu/output/renderers/null.rb
vedeu-0.6.21 lib/vedeu/output/renderers/null.rb
vedeu-0.6.20 lib/vedeu/output/renderers/null.rb
vedeu-0.6.19 lib/vedeu/output/renderers/null.rb
vedeu-0.6.18 lib/vedeu/output/renderers/null.rb
vedeu-0.6.17 lib/vedeu/output/renderers/null.rb
vedeu-0.6.16 lib/vedeu/output/renderers/null.rb