# File lib/utility/publisher.rb, line 30 def subscribe(subscriber) @subscribers ||= [] if !subscriber.respond_to?(:to_int) && !subscriber.respond_to?(:update) raise NoMethodError, "subscriber needs to respond to 'update'" end @subscribers.push subscriber end