public Method

Observable.count_observers

Return the number of observers associated with this object.

Source Code

# File observer.rb, line 149
def count_observers
  if defined? @observer_peers
    @observer_peers.size
  else
    0
  end
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.