Class: Redcarpet::Render::SeeingIsBelieving::Options
- Inherits:
-
Object
- Object
- Redcarpet::Render::SeeingIsBelieving::Options
- Defined in:
- lib/redcarpet/render/seeing_is_believing/options.rb
Instance Attribute Summary collapse
-
#show_exceptions ⇒ Object
readonly
Returns the value of attribute show_exceptions.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(show_exceptions: false) ⇒ Options
constructor
A new instance of Options.
Constructor Details
#initialize(show_exceptions: false) ⇒ Options
Returns a new instance of Options.
13 14 15 |
# File 'lib/redcarpet/render/seeing_is_believing/options.rb', line 13 def initialize(show_exceptions: false) @show_exceptions = show_exceptions end |
Instance Attribute Details
#show_exceptions ⇒ Object (readonly)
Returns the value of attribute show_exceptions.
5 6 7 |
# File 'lib/redcarpet/render/seeing_is_believing/options.rb', line 5 def show_exceptions @show_exceptions end |
Class Method Details
.parse(language) ⇒ Object
7 8 9 10 11 |
# File 'lib/redcarpet/render/seeing_is_believing/options.rb', line 7 def self.parse(language) = language.partition("+").last new(show_exceptions: .include?("e")) end |