forked from rack/rack
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- freezing constant string to ensure it's not mutated - use constant where available - optimize `respond_to?` to take less memory. Discussed in rack#737 and rack#739 `respond_to?` takes two arguments all recent rubies: - http://ruby-doc.org/core-2.1.3/Object.html#method-i-respond_to-3F - http://ruby-doc.org/core-1.9.3/Object.html#method-i-respond_to-3F - http://ruby-doc.org/core-1.8.7/Object.html#method-i-respond_to-3F Also `method_missing` will return a symbol from the first argument: - http://ruby-doc.org/core-2.1.3/BasicObject.html#method-i-method_missing - http://ruby-doc.org/core-1.9.3/BasicObject.html#method-i-method_missing - http://ruby-doc.org/core-1.8.7/Kernel.html#method-i-method_missing
- Loading branch information
Showing
3 changed files
with
12 additions
and
9 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
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