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.42 lib/vedeu/output/renderers/null.rb
vedeu-0.6.41 lib/vedeu/output/renderers/null.rb
vedeu-0.6.40 lib/vedeu/output/renderers/null.rb
vedeu-0.6.39 lib/vedeu/output/renderers/null.rb
vedeu-0.6.38 lib/vedeu/output/renderers/null.rb
vedeu-0.6.37 lib/vedeu/output/renderers/null.rb
vedeu-0.6.36 lib/vedeu/output/renderers/null.rb
vedeu-0.6.35 lib/vedeu/output/renderers/null.rb
vedeu-0.6.34 lib/vedeu/output/renderers/null.rb
vedeu-0.6.33 lib/vedeu/output/renderers/null.rb
vedeu-0.6.32 lib/vedeu/output/renderers/null.rb
vedeu-0.6.31 lib/vedeu/output/renderers/null.rb
vedeu-0.6.30 lib/vedeu/output/renderers/null.rb
vedeu-0.6.29 lib/vedeu/output/renderers/null.rb
vedeu-0.6.28 lib/vedeu/output/renderers/null.rb
vedeu-0.6.27 lib/vedeu/output/renderers/null.rb
vedeu-0.6.26 lib/vedeu/output/renderers/null.rb
vedeu-0.6.25 lib/vedeu/output/renderers/null.rb
vedeu-0.6.24 lib/vedeu/output/renderers/null.rb
vedeu-0.6.23 lib/vedeu/output/renderers/null.rb