Skip to content

Instantly share code, notes, and snippets.

@cwoodcox
Created October 25, 2012 02:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cwoodcox/3950142 to your computer and use it in GitHub Desktop.
Save cwoodcox/3950142 to your computer and use it in GitHub Desktop.
[28] pry(#<Module>):2> show-method nav_class
From: /Users/cwoodcox/Projects/esa/app/helpers/shim/pages_helper.rb @ line 8:
Number of lines: 7
Owner: Shim::PagesHelper
Visibility: public
def nav_class(section)
if current_section == section
"current-page"
else
""
end
end
[29] pry(#<Module>):2> ancestors
=> [#<Module:0x007f8516a78878>,
#<Module:0x007f85132d6e10>,
Shim::PagesHelper,
EventsHelper,
DeviseHelper,
ApplicationHelper,
#<Module:0x007f8511ba6d30>,
MetaSearch::Helpers::FormHelper,
MetaSearch::Helpers::UrlHelper]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment