Created
February 12, 2014 20:46
-
-
Save jredville/8964149 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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