forked from erector/erector
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Wrote Widget#to_a to support Rack servers (which accept arrays or str…
…ings in handler responses). Reworked Widget#to_s to use an array as its output stream by default, giving a slight (~5%) speed boost. Also added a performance test to ensure to_a is faster than to_s(:output=>''). Reformatted widget RDoc comments to fit in 80 columns.
- Loading branch information
Showing
2 changed files
with
134 additions
and
76 deletions.
There are no files selected for viewing
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
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