a classic hello world example from their doc,
class HelloWorld
def call(env)
return [200, {}, ["Hello world!"]]
end
end
my question is why the third value is [Hello world!"], not "Hello world"? From their doc,
The Body must respond to each and must only yield String values. The Body itself should not be an instance of String, as this will break in Ruby 1.9.
Why body needs to respond to each? and in what case does it matter?