Sha256: 3d48492ba16b1b6024cc76c160097230a375776b1bfaffd8338885b53d87a311

Contents?: true

Size: 378 Bytes

Versions: 2

Compression:

Stored size: 378 Bytes

Contents

module Vedeu

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

    # @return [Vedeu::Menus]
    def self.menus
      @menus ||= reset!
    end

    # @return [Vedeu::Menus]
    def self.repository
      Vedeu.menus
    end

    # @return [Vedeu::Menus]
    def self.reset!
      @menus = Vedeu::Menus.new(Vedeu::Menu)
    end

  end # Menus

end # Vedeu

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
vedeu-0.4.15 lib/vedeu/repositories/repositories/menus.rb
vedeu-0.4.14 lib/vedeu/repositories/repositories/menus.rb