Sha256: 1ab78ba7940fbb7fcc362fe3af65d2ae9b0181ae9110536591f7d7986f71dac2
Contents?: true
Size: 1.85 KB
Versions: 14
Compression:
Stored size: 1.85 KB
Contents
module Vedeu module Null # Provides a non-existent model to swallow messages. # class Generic # @!attribute [r] attributes # @return [String] attr_reader :attributes # @!attribute [r] name # @return [String] attr_reader :name # Returns an instance of the Vedeu::Null::Generic class. # # @param attributes [Hash<Symbol => void>] # @option attributes name [String|NilClass] # @return [Vedeu::Null::Generic] def initialize(attributes = {}) @attributes = attributes @name = @attributes[:name] end # @return [NilClass] def null(*) nil end alias_method :add, :null alias_method :bottom_item, :null alias_method :colour, :null alias_method :current_item, :null alias_method :deselect_item, :null alias_method :hide, :null alias_method :item, :null alias_method :items, :null alias_method :next_item, :null alias_method :parent, :null alias_method :prev_item, :null alias_method :select_item, :null alias_method :selected_item, :null alias_method :show, :null alias_method :style, :null alias_method :toggle, :null alias_method :top_item, :null alias_method :view, :null alias_method :zindex, :null # @return [Boolean] def null? true end # @return [Vedeu::Null::Generic] def store self end # The generic null should not be visible. # # @return [FalseClass] def visible? false end alias_method :visible, :visible? # @return [FalseClass] def visible=(*) false end end # Generic end # Null end # Vedeu
Version data entries
14 entries across 14 versions & 1 rubygems