Skip to content

Instantly share code, notes, and snippets.

@jredville
Created February 12, 2014 20:46
Show Gist options
  • Save jredville/8964149 to your computer and use it in GitHub Desktop.
Save jredville/8964149 to your computer and use it in GitHub Desktop.
def subscribe_on_next(&blk)
obs = Observer.configure do |o|
o.on_next &blk
end
subscribe obs
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment