aboutsummaryrefslogtreecommitdiffstats
path: root/lib/observer.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/observer.rb')
-rw-r--r--lib/observer.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/observer.rb b/lib/observer.rb
index 3756794952..99610f7505 100644
--- a/lib/observer.rb
+++ b/lib/observer.rb
@@ -15,13 +15,14 @@
# module, which provides the methods for managing the associated observer
# objects.
#
-# The observers must implement a method called +update+ to receive
-# notifications.
-#
# The observable object must:
# * assert that it has +#changed+
# * call +#notify_observers+
#
+# An observer subscribes to updates using Observable#add_observer, which also
+# specifies the method called via #notify_observers. The default method for
+# #notify_observers is #update.
+#
# === Example
#
# The following example demonstrates this nicely. A +Ticker+, when run,