Skip to content

Instantly share code, notes, and snippets.

@mattpodwysocki
Last active August 29, 2015 13:56
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save mattpodwysocki/8919784 to your computer and use it in GitHub Desktop.
def as_observer
Observer.configure do |o|
o.on_next &method(:on_next)
o.on_error &method(:on_error)
o.on_completed &method(:on_completed)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment