Class: Footnotes::Notes::AssignsNote
Constant Summary
collapse
- @@ignored_assigns =
[
:@real_format,
:@before_filter_chain_aborted,
:@performed_redirect,
:@performed_render,
:@_params,
:@_response,
:@url,
:@template,
:@_request,
:@db_rt_before_render,
:@db_rt_after_render,
:@view_runtime
]
Instance Method Summary
collapse
close!, #escape, #has_fieldset?, #hash_to_xml_attributes, included?, #javascript, #legend, #link, #mount_table, #mount_table_for_hash, #onclick, #prefix?, #row, start!, #stylesheet, title, #to_sym, to_sym
Constructor Details
#initialize(controller) ⇒ AssignsNote
Returns a new instance of AssignsNote.
20
21
22
|
# File 'lib/rails-footnotes/notes/assigns_note.rb', line 20
def initialize(controller)
@controller = controller
end
|
Instance Method Details
#content ⇒ Object
32
33
34
35
36
37
38
|
# File 'lib/rails-footnotes/notes/assigns_note.rb', line 32
def content
rows = []
assigns.each do |key|
rows << [ key, escape(assigned_value(key)) ]
end
mount_table(rows.unshift(['Name', 'Value']), :class => 'name_values', :summary => "Debug information for #{title}")
end
|
#title ⇒ Object
24
25
26
|
# File 'lib/rails-footnotes/notes/assigns_note.rb', line 24
def title
"Assigns (#{assigns.size})"
end
|
#valid? ⇒ Boolean
28
29
30
|
# File 'lib/rails-footnotes/notes/assigns_note.rb', line 28
def valid?
assigns
end
|