RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

The Observer Pattern and Exception Handling

Observers are a useful mechanism of composition to set up event flows. They are designed for ‘fan out’ communication, in which multiple objects are notified when a single object changes. Many languages have implementations of the observer pattern. Ruby, for example, has a module Observable that implements the pattern

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in