class Redcarpet::Render::SeeingIsBelieving::Options

Attributes

show_exceptions[R]

Public Class Methods

new(show_exceptions: false) click to toggle source
# File lib/redcarpet/render/seeing_is_believing/options.rb, line 13
def initialize(show_exceptions: false)
  @show_exceptions = show_exceptions
end
parse(language) click to toggle source
# File lib/redcarpet/render/seeing_is_believing/options.rb, line 7
def self.parse(language)
  options = language.partition("+").last

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