Sha256: 0f537ffc365ca0052ebe68f5e95740f050a25e7c564f83e33847283112d277bf

Contents?: true

Size: 916 Bytes

Versions: 27

Compression:

Stored size: 916 Bytes

Contents

module Vedeu

  module Null

    # Provides a non-existent model to swallow messages.
    #
    class Menu

      # Returns an instance of the Vedeu::Null::Menu class.
      #
      # @param attributes [Hash<Symbol => void>]
      # @option attributes name [String|NilClass]
      # @return [Vedeu::Null::Menu]
      def initialize(attributes = {})
        @attributes = attributes
        @name       = @attributes[:name]
      end

      # @return [NilClass]
      def item
        nil
      end
      alias_method :bottom_item, :item
      alias_method :current_item, :item
      alias_method :deselect_item, :item
      alias_method :items, :item
      alias_method :next_item, :item
      alias_method :prev_item, :item
      alias_method :select_item, :item
      alias_method :selected_item, :item
      alias_method :top_item, :item
      alias_method :view, :item

    end # Menu

  end # Null

end # Vedeu

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
vedeu-0.6.6 lib/vedeu/null/menu.rb
vedeu-0.6.5 lib/vedeu/null/menu.rb
vedeu-0.6.4 lib/vedeu/null/menu.rb
vedeu-0.6.3 lib/vedeu/null/menu.rb
vedeu-0.6.2 lib/vedeu/null/menu.rb
vedeu-0.6.1 lib/vedeu/null/menu.rb
vedeu-0.6.0 lib/vedeu/null/menu.rb
vedeu-0.5.13 lib/vedeu/null/menu.rb
vedeu-0.5.12 lib/vedeu/null/menu.rb
vedeu-0.5.11 lib/vedeu/null/menu.rb
vedeu-0.5.10 lib/vedeu/null/menu.rb
vedeu-0.5.9 lib/vedeu/null/menu.rb
vedeu-0.5.8 lib/vedeu/null/menu.rb
vedeu-0.5.7 lib/vedeu/null/menu.rb
vedeu-0.5.6 lib/vedeu/null/menu.rb
vedeu-0.5.5 lib/vedeu/null/menu.rb
vedeu-0.5.4 lib/vedeu/null/menu.rb
vedeu-0.5.3 lib/vedeu/null/menu.rb
vedeu-0.5.2 lib/vedeu/null/menu.rb
vedeu-0.5.1 lib/vedeu/null/menu.rb