Sha256: 24bc3cb617d243692146d0a7732201b39e285d17a3224e9b58340534663cd428

Contents?: true

Size: 293 Bytes

Versions: 3

Compression:

Stored size: 293 Bytes

Contents

module Jack
  class Html < Jack::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.3 lib/jack/html.rb
jackb-0.0.2 lib/jack/html.rb
jackb-0.0.1 lib/jack/html.rb