Class: MerbFootnotes::Notes::CookiesNote
- Inherits:
-
AbstractNote
- Object
- AbstractNote
- MerbFootnotes::Notes::CookiesNote
- Defined in:
- lib/merb_footnotes/notes/cookies_note.rb
Instance Method Summary collapse
- #content ⇒ Object
-
#initialize(controller) ⇒ CookiesNote
constructor
A new instance of CookiesNote.
- #title ⇒ Object
Methods inherited from AbstractNote
close!, #fieldset?, included?, #included?, #javascript, #legend, #link, #onclick, #row, start!, #stylesheet, title, #to_sym, to_sym, #valid?
Constructor Details
#initialize(controller) ⇒ CookiesNote
Returns a new instance of CookiesNote.
6 7 8 |
# File 'lib/merb_footnotes/notes/cookies_note.rb', line 6 def initialize(controller) @cookies = controller. end |
Instance Method Details
#content ⇒ Object
14 15 16 |
# File 'lib/merb_footnotes/notes/cookies_note.rb', line 14 def content escape(@cookies.inspect) end |
#title ⇒ Object
10 11 12 |
# File 'lib/merb_footnotes/notes/cookies_note.rb', line 10 def title "Cookies (#{@cookies.length})" end |