lib/sms.rb
# The observer needs to respond to a single method #delivered_sms(sms)
# which receives the sms that is sent.
The observer needs to respond to a single method #delivered_sms(sms)
which receives the sms that is sent.
The observer needs to respond to a single method #delivered_sms ( sms ) which receives the sms that is sent .
def register_observer(observer)
      unless @@delivery_notification_observers.include?(observer)
        @@delivery_notification_observers << observer
      end
    end
def register_observer ( observer ) unless @@delivery_notification_observers . include? ( observer ) @@delivery_notification_observers << observer end end
The observer needs to respond to a single method #delivered_sms(sms)
which receives the sms that is sent.
The observer needs to respond to a single method #delivered_sms ( sms ) which receives the sms that is sent .
observer
<not_specific>