Sha256: 1957cf4b4bc177ca9c89c4bd0d2da91e544d3ab58643e4958b928df6d1d9cf97
Contents?: true
Size: 941 Bytes
Versions: 12
Compression:
Stored size: 941 Bytes
Contents
module Vedeu module Buffers # Provides a non-existent Vedeu::Buffers::Buffer that acts like # the real thing, but does nothing. # class Null # @!attribute [r] name # @return [String] attr_reader :name # Returns a new instance of Vedeu::Buffers::Null. # # @param attributes [Hash<Symbol => void>] # @option attributes name [String|NilClass] # @return [Vedeu::Buffers::Null] def initialize(attributes = {}) @attributes = attributes @name = @attributes[:name] end # @return [NilClass] def null(*) nil end alias_method :add, :null alias_method :clear, :null alias_method :hide, :null alias_method :render, :null alias_method :show, :null alias_method :toggle, :null # @return [Boolean] def null? true end end # Null end # Buffers end # Vedeu
Version data entries
12 entries across 12 versions & 1 rubygems