Class: Footnotes::Notes::FilesNote
Instance Method Summary
collapse
close!, #has_fieldset?, included?, #javascript, #legend, #link, #onclick, start!, #stylesheet, #title, title, #to_sym, to_sym
Constructor Details
#initialize(controller) ⇒ FilesNote
Returns a new instance of FilesNote.
6
7
8
9
|
# File 'lib/rails-footnotes/notes/files_note.rb', line 6
def initialize(controller)
@files = scan_text(controller.response.body)
parse_files!
end
|
Instance Method Details
#content ⇒ Object
15
16
17
18
19
20
21
|
# File 'lib/rails-footnotes/notes/files_note.rb', line 15
def content
if @files.empty?
""
else
"<ul><li>#{@files.join("</li><li>")}</li></ul>"
end
end
|
#row ⇒ Object
11
12
13
|
# File 'lib/rails-footnotes/notes/files_note.rb', line 11
def row
:edit
end
|
#valid? ⇒ Boolean
23
24
25
|
# File 'lib/rails-footnotes/notes/files_note.rb', line 23
def valid?
prefix?
end
|