4 ms·
Also... Observable.throw(Exception.new("woops!")).subscribe(Class.new(Observer) do [...] end.new) http://rxrb.codeplex.com/SourceControl/latest#li
by coolj 13y ago
Also...
Observable.throw(Exception.new("woops!")).subscribe(Class.new(Observer) do
[...]
end.new)
http://rxrb.codeplex.com/SourceControl/latest#lib/Rx.rb http://rxrb.codeplex.com/SourceControl/latest#lib/Rx.rb (bottom)
Even if the method were named sanely and consistently `Observable::on_error`, I still don't want to write code like the above.
BTW, I don't see any class variables in the re-opened Enumerable module.
- Argorak 13y agoSeperate things. It monkey-patches Enumerable. It uses class variables. But not in the same context. Thanks for finding that. Yes, the code looks like it is directly taken from Java/C#.