Module: TopHat
- Extended by:
- TopHat
- Included in:
- TopHat
- Defined in:
- lib/tophat.rb,
lib/tophat/html.rb,
lib/tophat/meta.rb,
lib/tophat/title.rb,
lib/tophat/robots.rb,
lib/tophat/version.rb,
lib/tophat/opengraph.rb,
lib/tophat/stylesheet.rb,
lib/tophat/twitter_card.rb
Defined Under Namespace
Modules: HtmlHelper, MetaHelper, OpenGraphHelper, RobotsHelper, StylesheetHelper, TitleHelper, TwitterCardHelper
Constant Summary
collapse
- VERSION =
'1.6.0'
Instance Method Summary
collapse
Instance Method Details
#current ⇒ Object
6
7
8
9
10
|
# File 'lib/tophat.rb', line 6
def current
return Thread.current[:tophat] if Thread.current[:tophat]
reset
end
|
#reset ⇒ Object
12
13
14
|
# File 'lib/tophat.rb', line 12
def reset
Thread.current[:tophat] = {}
end
|