Sha256: d5f6749e0dd54f41e649ab3d20a84cf42e7c0eef4ce985c59ceb55ed1c439e70

Contents?: true

Size: 421 Bytes

Versions: 2

Compression:

Stored size: 421 Bytes

Contents

module Vedeu

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

    class << self

      # @return [Vedeu::Menus]
      def menus
        @menus ||= reset!
      end
      alias_method :repository, :menus

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

    end

  end # Menus

end # Vedeu

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
vedeu-0.4.25 lib/vedeu/repositories/repositories/menus.rb
vedeu-0.4.24 lib/vedeu/repositories/repositories/menus.rb