Class: Stasis::Extensions::ContentFor
- Inherits:
-
Plugin
- Object
- Plugin
- Stasis::Extensions::ContentFor
- Defined in:
- lib/stasis/extensions/content_for.rb
Instance Method Summary collapse
- #before_all ⇒ Object
-
#initialize(stasis) ⇒ ContentFor
constructor
A new instance of ContentFor.
- #reset ⇒ Object
Constructor Details
#initialize(stasis) ⇒ ContentFor
Returns a new instance of ContentFor.
7 8 9 10 |
# File 'lib/stasis/extensions/content_for.rb', line 7 def initialize(stasis) @stasis = stasis reset end |
Instance Method Details
#before_all ⇒ Object
12 13 14 |
# File 'lib/stasis/extensions/content_for.rb', line 12 def before_all define_helpers end |
#reset ⇒ Object
16 17 18 |
# File 'lib/stasis/extensions/content_for.rb', line 16 def reset @content = {} end |