Sha256: 849490c767c8d405542859311e34f12ed477107e3cebca3f3a6e45fa225ff374
Contents?: true
Size: 286 Bytes
Versions: 1
Compression:
Stored size: 286 Bytes
Contents
module Footnotes module Notes class JavascriptsNote < FilesNote def title "Javascripts (#{@files.length})" end protected def scan_text(text) text.scan(/<script[^>]+src\s*=\s*['"]([^>?'"]+\.js)/im).flatten end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rails-footnotes-3.7.3 | lib/rails-footnotes/notes/javascripts_note.rb |