Created
March 24, 2014 17:20
-
-
Save cmelbye/9744844 to your computer and use it in GitHub Desktop.
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
[1] pry(main)> cd ActionDispatch::Request | |
[2] pry(ActionDispatch::Request):1> show-method headers | |
From: /Users/charliemelbye/.rvm/gems/ruby-2.1.0/gems/actionpack-3.2.16/lib/action_dispatch/http/request.rb @ line 126: | |
Owner: ActionDispatch::Request | |
Visibility: public | |
Number of lines: 3 | |
def headers | |
Http::Headers.new(@env) | |
end | |
[3] pry(ActionDispatch::Request):1> cd Http::Headers | |
Error: Bad object path: Http::Headers. Failed trying to resolve: Http::Headers. #<NameError: uninitialized constant HTTP::Headers> | |
[4] pry(ActionDispatch::Request):1> Http::Headers.new | |
NameError: uninitialized constant HTTP::Headers | |
from (pry):1:in `__binding__' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment