Sha256: 9eb99dff191eb9b9b676c7b59b34645e7b1d0bfa1a1fd2e4073336f3cb0666e0
Contents?: true
Size: 411 Bytes
Versions: 3
Compression:
Stored size: 411 Bytes
Contents
module NotificationHandler class Group attr_accessor :name attr_accessor :target_scope def initialize name, target_scope @name = name @target_scope = target_scope end def find_by_name name ObjectSpace.each_object(NotificationHandler::Group).select { |group| group.name == name.to_sym } end end end
Version data entries
3 entries across 3 versions & 1 rubygems