Sha256: bc1323a2779dace9197fb786bd84af59927def1cef7c725aac168d2c03c90e58

Contents?: true

Size: 812 Bytes

Versions: 5

Compression:

Stored size: 812 Bytes

Contents

module Vedeu

  module Null

    # Provides a non-existent Vedeu::Buffer that acts like the real thing, but
    # does nothing.
    #
    # @api private
    class Buffer

      # @!attribute [r] name
      # @return [String]
      attr_reader :name

      # Returns a new instance of Vedeu::Null::Buffer.
      #
      # @param name [String]
      # @return [Vedeu::Null::Buffer]
      def initialize(name)
        @name = name
      end

      # @return [NilClass]
      def clear
        nil
      end

      # @return [NilClass]
      def hide
        nil
      end

      # @return [Boolean]
      def null?
        true
      end

      # @return [NilClass]
      def render
        nil
      end

      # @return [NilClass]
      def show
        nil
      end

    end # Buffer

  end # Null

end # Vedeu

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
vedeu-0.4.53 lib/vedeu/null/buffer.rb
vedeu-0.4.52 lib/vedeu/null/buffer.rb
vedeu-0.4.51 lib/vedeu/null/buffer.rb
vedeu-0.4.50 lib/vedeu/null/buffer.rb
vedeu-0.4.49 lib/vedeu/null/buffer.rb