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,
:@marked_for_same_origin_verification
]
- @@ignored_assigns_pattern =
/^@_/
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.
23
24
25
|
# File 'lib/rails-footnotes/notes/assigns_note.rb', line 23
def initialize(controller)
@controller = controller
end
|
Instance Method Details
#content ⇒ Object
35
36
37
|
# File 'lib/rails-footnotes/notes/assigns_note.rb', line 35
def content
mount_table(to_table, :summary => "Debug information for #{title}")
end
|
#title ⇒ Object
27
28
29
|
# File 'lib/rails-footnotes/notes/assigns_note.rb', line 27
def title
"Assigns (#{assigns.size})"
end
|
#valid? ⇒ Boolean
31
32
33
|
# File 'lib/rails-footnotes/notes/assigns_note.rb', line 31
def valid?
assigns.present?
end
|