Sha256: ad42e12f217cc4cd64e0f857230e6444a3df37ef7fa8da65cf8e013dec799b1b

Contents?: true

Size: 295 Bytes

Versions: 3

Compression:

Stored size: 295 Bytes

Contents

module Jackb
  class Html < Jackb::Highlight
    attr_reader   :content
    
    def initialize(content)
      @content = content
    end
    
    
    def render
      super(@content)
    end
    
    private
    def highlight_regex
      /\[code([^\[\]]*)\](.*?)\[\/code\]/im
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
jackb-0.0.6.beta lib/jackb/html.rb
jackb-0.0.5 lib/jackb/html.rb
jackb-0.0.4 lib/jackb/html.rb