Class: Footnotes::Notes::ParamsNote
- Inherits:
-
AbstractNote
- Object
- AbstractNote
- Footnotes::Notes::ParamsNote
- Defined in:
- lib/sinatra-footnotes/notes/params_note.rb
Instance Method Summary collapse
- #content ⇒ Object
-
#initialize(controller) ⇒ ParamsNote
constructor
A new instance of ParamsNote.
- #title ⇒ Object
Methods inherited from AbstractNote
close!, #has_fieldset?, included?, #javascript, #legend, #link, #onclick, #row, start!, #stylesheet, title, #to_sym, to_sym, #valid?
Constructor Details
#initialize(controller) ⇒ ParamsNote
Returns a new instance of ParamsNote.
6 7 8 |
# File 'lib/sinatra-footnotes/notes/params_note.rb', line 6 def initialize(controller) @params = make_keys_strings(controller.params) end |
Instance Method Details
#content ⇒ Object
14 15 16 |
# File 'lib/sinatra-footnotes/notes/params_note.rb', line 14 def content mount_table_for_hash(@params, :summary => "Debug information for #{title}") end |
#title ⇒ Object
10 11 12 |
# File 'lib/sinatra-footnotes/notes/params_note.rb', line 10 def title "Params (#{@params.length})" end |