Timeline for how to pass a block to a function as a parameter
Current License: CC BY-SA 3.0
2 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 23, 2012 at 16:09 | comment | added | MarkDBlackwell |
However, Rack::Response.new responds differently to a block than to the first argument. It would work if you changed the line to: when '/env' then Proc.new { rr.write @end.to_html } , but it's complicated.
|
|
Jan 23, 2012 at 7:16 | history | answered | qpingu | CC BY-SA 3.0 |