Sha256: 7bfe0459fc02a86f3e668ba6115bf4a84cf7e921a327a0e9bdcf19263713c52c

Contents?: true

Size: 402 Bytes

Versions: 3

Compression:

Stored size: 402 Bytes

Contents

module Redcarpet
  module Render
    module SeeingIsBelieving
      class Options
        attr_reader :show_exceptions

        def self.parse(language)
          options = language.partition("+").last

          new(show_exceptions: options.include?("e"))
        end

        def initialize(show_exceptions: false)
          @show_exceptions = show_exceptions
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
redcarpet-render-seeing_is_believing-0.2.2 lib/redcarpet/render/seeing_is_believing/options.rb
redcarpet-render-seeing_is_believing-0.2.1 lib/redcarpet/render/seeing_is_believing/options.rb
redcarpet-render-seeing_is_believing-0.2.0 lib/redcarpet/render/seeing_is_believing/options.rb