Sha256: d76dec5fb3c3b5cf31f9b0bf6d2a6732b01998a7d63dc80e9a1e8e9266e43d4a
Contents?: true
Size: 704 Bytes
Versions: 1
Compression:
Stored size: 704 Bytes
Contents
module Vedeu # Allows the storing of view groups. # # @api public class Groups < Repository class << self alias_method :groups, :repository # Remove all stored models from the repository. # # @example # Vedeu.groups.reset! # # @return [Vedeu::Groups] def reset! @groups = register(Vedeu::Group) end end # @example # Vedeu.groups.by_name('name') # # @param name [String] The name of the stored group. # @return [Vedeu::Group] def by_name(name) if registered?(name) find(name) else Vedeu::Group.new(name: name).store end end end # Groups end # Vedeu
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vedeu-0.4.45 | lib/vedeu/repositories/repositories/groups.rb |