Class: Jsus::Util::PostProcessor::MooltIE8

Inherits:
Base
  • Object
show all
Defined in:
lib/jsus/util/post_processor/mooltie8.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize

Methods included from Mixins::OperatesOnSources

#source_files, #source_files=

Constructor Details

This class inherits a constructor from Jsus::Util::PostProcessor::Base

Instance Method Details

#process(options = {}) ⇒ Array

Removes everything between tags

Returns:

  • (Array)

See Also:



8
9
10
11
12
13
14
15
# File 'lib/jsus/util/post_processor/mooltie8.rb', line 8

def process(options = {})
  source_files.map do |file|
    file = file.dup
    file.source = file.source.gsub(/\/\/<ltIE8>.*?\/\/<\/ltIE8>/m, '')
    file.source = file.source.gsub(/\/\*<ltIE8>\*\/.*?\/\*<\/ltIE8>\*\//m, '')
    file
  end
end