Sha256: 9df5f515bbdbb82f5f8e930d979ab94a1b2a5c4767b2463b7f3dfedce3662eef
Contents?: true
Size: 623 Bytes
Versions: 1
Compression:
Stored size: 623 Bytes
Contents
module Vedeu # Allows the storing of view groups. # # @api public class Groups < Repository class << self # @return [Vedeu::Groups] alias_method :groups, :repository # Remove all stored models from the repository. # # @return [Vedeu::Groups] def reset! @groups = register(Vedeu::Group) end end # @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.33 | lib/vedeu/repositories/repositories/groups.rb |