Sha256: e42321d3526dac2b39f827430c63dbc98790fa5bbd2bada29e3fc92c20f9e50c

Contents?: true

Size: 192 Bytes

Versions: 13

Compression:

Stored size: 192 Bytes

Contents

require_relative 'processor'

module SSMD::Processors
  class MarkProcessor < Processor
    def result
      "<mark name=\"#{text}\"/>"
    end

    def regex
      /@(\w+)/
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
ssmd-0.7.5 lib/ssmd/processors/mark_processor.rb
ssmd-0.7.4 lib/ssmd/processors/mark_processor.rb
ssmd-0.7.3 lib/ssmd/processors/mark_processor.rb
ssmd-0.7.2 lib/ssmd/processors/mark_processor.rb
ssmd-0.7.1 lib/ssmd/processors/mark_processor.rb
ssmd-0.7.0 lib/ssmd/processors/mark_processor.rb
ssmd-0.6.1 lib/ssmd/processors/mark_processor.rb
ssmd-0.6.0 lib/ssmd/processors/mark_processor.rb
ssmd-0.5.0 lib/ssmd/processors/mark_processor.rb
ssmd-0.4.0 lib/ssmd/processors/mark_processor.rb
ssmd-0.3.1 lib/ssmd/processors/mark_processor.rb
ssmd-0.3.0 lib/ssmd/processors/mark_processor.rb
ssmd-0.2.3 lib/ssmd/processors/mark_processor.rb