Class: Vedeu::InterfacesRepository
- Inherits:
-
Repository
- Object
- Repository
- Vedeu::InterfacesRepository
- Defined in:
- lib/vedeu/repositories/repositories/interfaces_repository.rb
Overview
Allows the storing of interfaces and views.
Class Method Summary collapse
- .interfaces ⇒ Vedeu::InterfacesRepository (also: repository)
-
.reset! ⇒ Vedeu::InterfacesRepository
Remove all stored models from the repository.
Methods included from Store
#each, #empty?, #exists?, #reset, #size, #storage
Methods included from Registerable
Methods included from Common
Constructor Details
This class inherits a constructor from Vedeu::Repository
Class Method Details
.interfaces ⇒ Vedeu::InterfacesRepository Also known as: repository
9 10 11 |
# File 'lib/vedeu/repositories/repositories/interfaces_repository.rb', line 9 def interfaces @interfaces ||= reset! end |
.reset! ⇒ Vedeu::InterfacesRepository
Remove all stored models from the repository.
17 18 19 |
# File 'lib/vedeu/repositories/repositories/interfaces_repository.rb', line 17 def reset! @interfaces = Vedeu::InterfacesRepository.register(Vedeu::Interface) end |