Class: Footnotes::Notes::ControllerNote
Instance Method Summary
collapse
close!, #escape, #has_fieldset?, #hash_to_xml_attributes, included?, #javascript, #legend, #mount_table, #mount_table_for_hash, #onclick, #prefix?, start!, #stylesheet, #title, title, #to_sym, to_sym
Constructor Details
Returns a new instance of ControllerNote.
4
5
6
|
# File 'lib/rails-footnotes/notes/controller_note.rb', line 4
def initialize(controller)
@controller = controller
end
|
Instance Method Details
#link ⇒ Object
12
13
14
|
# File 'lib/rails-footnotes/notes/controller_note.rb', line 12
def link
Footnotes::Filter.prefix(controller_filename, controller_line_number + 1, 3)
end
|
#row ⇒ Object
8
9
10
|
# File 'lib/rails-footnotes/notes/controller_note.rb', line 8
def row
:edit
end
|
#valid? ⇒ Boolean
16
17
18
|
# File 'lib/rails-footnotes/notes/controller_note.rb', line 16
def valid?
prefix? && controller_filename && File.exists?(controller_filename)
end
|