Class: Jsus::Util::PostProcessor::Moocompat12
- Defined in:
- lib/jsus/util/post_processor/moocompat12.rb
Instance Method Summary collapse
-
#process(options = {}) ⇒ Array
Removes everything between <1.2compat> 1.2compat> tags.
Methods inherited from Base
Methods included from Mixins::OperatesOnSources
Constructor Details
This class inherits a constructor from Jsus::Util::PostProcessor::Base
Instance Method Details
#process(options = {}) ⇒ Array
Removes everything between <1.2compat> 1.2compat> tags
8 9 10 11 12 13 14 15 |
# File 'lib/jsus/util/post_processor/moocompat12.rb', line 8 def process( = {}) source_files.map do |file| file = file.dup file.source = file.source.gsub(/\/\/<1.2compat>.*?\/\/<\/1.2compat>/m, '') file.source = file.source.gsub(/\/\*<1.2compat>\*\/.*?\/\*<\/1.2compat>\*\//m, '') file end end |