Permalink
Browse files

copy-edits 6d7a826

  • Loading branch information...
1 parent fa38214 commit 5e69debd7ab2c983f234478fe6c93542c7b46ea6 @fxn fxn committed with bowsersenior Feb 21, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 activemodel/lib/active_model/observing.rb
@@ -48,22 +48,22 @@ def instantiate_observers
observers.each { |o| instantiate_observer(o) }
end
- # Add a new Observer to the pool
+ # Add a new observer to the pool.
def add_observer(observer)
unless observer.respond_to? :update
raise ArgumentError, "observer needs to respond to `update'"
end
observer_instances << observer
end
- # Notify list of observers of a change
+ # Notify list of observers of a change.
def notify_observers(*arg)
for observer in observer_instances
observer.update(*arg)
end
end
- # Total number of observers
+ # Total number of observers.
def count_observers
observer_instances.size
end

0 comments on commit 5e69deb

Please sign in to comment.