Class: MerbFootnotes::Notes::SessionNote

Inherits:
AbstractNote show all
Defined in:
lib/merb_footnotes/notes/session_note.rb

Instance Method Summary collapse

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) ⇒ SessionNote

Returns a new instance of SessionNote.



6
7
8
# File 'lib/merb_footnotes/notes/session_note.rb', line 6

def initialize(controller)
  @session = controller.session
end

Instance Method Details

#contentObject



14
15
16
# File 'lib/merb_footnotes/notes/session_note.rb', line 14

def content
  escape(@session.inspect)
end

#titleObject



10
11
12
# File 'lib/merb_footnotes/notes/session_note.rb', line 10

def title
  "Session (#{@session.size})"
end