lib/vedeu/repositories/groups.rb in vedeu-0.2.3 vs lib/vedeu/repositories/groups.rb in vedeu-0.2.4

- old
+ new

@@ -11,11 +11,11 @@ # Add an interface name to a group, creating the group if it doesn't already # exist, and rejecting the interface if it is already known. # # @param attributes [Hash] - # @return [Groups|FalseClass] + # @return [Boolean] def add(attributes) validate_attributes!(attributes) return false unless defined_value?(attributes[:group]) @@ -27,26 +27,23 @@ end private # @see Vedeu::Refresh.register_event - # @api private # @param attributes [Hash] # @return [Boolean] def register_event(attributes) name = attributes[:group] delay = attributes[:delay] || 0.0 Vedeu::Refresh.register_event(:by_group, name, delay) end - # @api private # @return [Hash] def in_memory Hash.new { |hash, key| hash[key] = Set.new } end - # @api private # @param name [String] # @raise [GroupNotFound] When the entity cannot be found with this name. # @return [GroupNotFound] def not_found(name) fail GroupNotFound,