Closed jschementi closed 15 years ago
No, ruby_response[2](the body of the response) only must respond to "each" and yield Strings. It would be cool to write that first line maybe something like this:
ruby_response[2].Send("each", (part) => response.Write(part))
Closing bug, but should think about adding an implicit delegate to IronRuby
These might also be better to write in C# if ruby_response[2] is some strongly typed object (RubyArray?). If it is not then enumerating it from C# gets a little bit tricky (we don’t provide any easy to use helper for that, we probably should), so for now evaluating the code is reasonable.