Sha256: 22f341daaa2a566651919f545589d93f7c8544a934566f38ad5284b89e478401

Contents?: true

Size: 490 Bytes

Versions: 11

Compression:

Stored size: 490 Bytes

Contents

module Vedeu

  # Allows the storing of menus by name.
  #
  # @api public
  class Menus < Repository

    class << self

      # @example
      #   Vedeu.menus
      #
      # @return [Vedeu::Menus]
      alias_method :menus, :repository

      # Remove all stored models from the repository.
      #
      # @example
      #   Vedeu.menus.reset!
      #
      # @return [Vedeu::Menus]
      def reset!
        @menus = register(Vedeu::Menu)
      end

    end

  end # Menus

end # Vedeu

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
vedeu-0.4.44 lib/vedeu/repositories/repositories/menus.rb
vedeu-0.4.43 lib/vedeu/repositories/repositories/menus.rb
vedeu-0.4.42 lib/vedeu/repositories/repositories/menus.rb
vedeu-0.4.41 lib/vedeu/repositories/repositories/menus.rb
vedeu-0.4.40 lib/vedeu/repositories/repositories/menus.rb
vedeu-0.4.39 lib/vedeu/repositories/repositories/menus.rb
vedeu-0.4.38 lib/vedeu/repositories/repositories/menus.rb
vedeu-0.4.37 lib/vedeu/repositories/repositories/menus.rb
vedeu-0.4.36 lib/vedeu/repositories/repositories/menus.rb
vedeu-0.4.35 lib/vedeu/repositories/repositories/menus.rb
vedeu-0.4.34 lib/vedeu/repositories/repositories/menus.rb