Sha256: 61e0f2bc5602a82c887a471ad47067e0e852888055ae45021b1571f3e3a7ccb7

Contents?: true

Size: 994 Bytes

Versions: 13

Compression:

Stored size: 994 Bytes

Contents

module Vedeu

  module Null

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

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

      # Returns a new instance of Vedeu::Null::Buffer.
      #
      # @param attributes [Hash<Symbol => void>]
      # @option attributes name [String|NilClass]
      # @return [Vedeu::Null::Buffer]
      def initialize(attributes = {})
        @attributes = attributes
        @name       = @attributes[: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

      # @return [NilClass]
      def toggle
        nil
      end

    end # Buffer

  end # Null

end # Vedeu

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
vedeu-0.5.3 lib/vedeu/null/buffer.rb
vedeu-0.5.2 lib/vedeu/null/buffer.rb
vedeu-0.5.1 lib/vedeu/null/buffer.rb
vedeu-0.5.0 lib/vedeu/null/buffer.rb
vedeu-0.4.65 lib/vedeu/null/buffer.rb
vedeu-0.4.64 lib/vedeu/null/buffer.rb
vedeu-0.4.63 lib/vedeu/null/buffer.rb
vedeu-0.4.62 lib/vedeu/null/buffer.rb
vedeu-0.4.61 lib/vedeu/null/buffer.rb
vedeu-0.4.60 lib/vedeu/null/buffer.rb
vedeu-0.4.59 lib/vedeu/null/buffer.rb
vedeu-0.4.58 lib/vedeu/null/buffer.rb
vedeu-0.4.57 lib/vedeu/null/buffer.rb