aboutsummaryrefslogtreecommitdiff
path: root/lib/mauve/people_list.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mauve/people_list.rb')
-rw-r--r--lib/mauve/people_list.rb23
1 files changed, 3 insertions, 20 deletions
diff --git a/lib/mauve/people_list.rb b/lib/mauve/people_list.rb
index 1890ab1..eab4ae3 100644
--- a/lib/mauve/people_list.rb
+++ b/lib/mauve/people_list.rb
@@ -9,7 +9,7 @@ module Mauve
#
class PeopleList
- attr_reader :label, :list, :during, :every
+ attr_reader :label, :list, :notifications
# Create a new list
#
@@ -17,31 +17,14 @@ module Mauve
# @raise [ArgumentError] if the label is not a string
#
def initialize(label)
- raise ArgumentError, "people_list label must be a string" unless label.is_a?(String)
+ raise ArgumentError, "people_list label must be a string #{label.inspect}" unless label.is_a?(String)
@label = label
@list = []
- @during = nil
- @every = nil
+ @notifications = []
end
alias username label
- #
- #
- #
- def during=(arg)
- raise "during must be a block" unless arg.is_a?(Proc)
- @during = arg
- end
-
- #
- #
- #
- def every=(arg)
- raise ArgumentError, "every must be numeric" unless arg.is_a?(Numeric)
- @every = arg
- end
-
# Append an Array or String to a list
#
# @param [Array or String] arr