Sha256: 1a6b64ba4bc2b2dab8ab841ea628f683f962291c94666aadaae26e873a1d1255

Contents?: true

Size: 333 Bytes

Versions: 40

Compression:

Stored size: 333 Bytes

Contents

require "#{File.dirname(__FILE__)}/files_note"

module Footnotes
  module Notes
    class StylesheetsNote < FilesNote
      def title
        "Stylesheets (#{@files.length})"
      end

      protected
        def scan_text(text)
          text.scan(/<link[^>]+href\s*=\s*['"]([^>?'"]+\.css)/im).flatten
        end
    end
  end
end

Version data entries

40 entries across 40 versions & 9 rubygems

Version Path
artofmission-rails-footnotes-3.6.0.1 lib/rails-footnotes/notes/stylesheets_note.rb
artofmission-rails-footnotes-3.6.2 lib/rails-footnotes/notes/stylesheets_note.rb
ceritium-rails-footnotes-3.4.1.1 lib/rails-footnotes/notes/stylesheets_note.rb
ceritium-rails-footnotes-3.4.1 lib/rails-footnotes/notes/stylesheets_note.rb
ceritium-rails-footnotes-3.4 lib/rails-footnotes/notes/stylesheets_note.rb
josevalim-rails-footnotes-3.3.1 lib/notes/stylesheets_note.rb
josevalim-rails-footnotes-3.3.2 lib/notes/stylesheets_note.rb
josevalim-rails-footnotes-3.4.1 lib/rails-footnotes/notes/stylesheets_note.rb
josevalim-rails-footnotes-3.4 lib/rails-footnotes/notes/stylesheets_note.rb
josevalim-rails-footnotes-3.5.0 lib/rails-footnotes/notes/stylesheets_note.rb
josevalim-rails-footnotes-3.6.0 lib/rails-footnotes/notes/stylesheets_note.rb
josevalim-rails-footnotes-3.6.1 lib/rails-footnotes/notes/stylesheets_note.rb
josevalim-rails-footnotes-3.6.2 lib/rails-footnotes/notes/stylesheets_note.rb
lexrupy-rails-footnotes-3.3.2 lib/rails-footnotes/notes/stylesheets_note.rb
lexrupy-rails-footnotes-3.4.1 lib/rails-footnotes/notes/stylesheets_note.rb
lexrupy-rails-footnotes-3.4 lib/rails-footnotes/notes/stylesheets_note.rb
omghax-rails-footnotes-3.6.1 lib/rails-footnotes/notes/stylesheets_note.rb
omghax-rails-footnotes-3.6.2 lib/rails-footnotes/notes/stylesheets_note.rb
rails-footnotes-3.7.2 lib/rails-footnotes/notes/stylesheets_note.rb
rails-footnotes-3.7.1 lib/rails-footnotes/notes/stylesheets_note.rb