Class: ReverseAsciidoctor::Config
- Inherits:
-
Object
- Object
- ReverseAsciidoctor::Config
- Defined in:
- lib/reverse_asciidoctor/config.rb
Instance Attribute Summary collapse
-
#mathml2asciimath ⇒ Object
Returns the value of attribute mathml2asciimath.
-
#tag_border ⇒ Object
Returns the value of attribute tag_border.
-
#unknown_tags ⇒ Object
Returns the value of attribute unknown_tags.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
- #with(options = {}) ⇒ Object
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
5 6 7 8 9 10 11 12 |
# File 'lib/reverse_asciidoctor/config.rb', line 5 def initialize @unknown_tags = :pass_through @mathml2asciimath = false @em_delimiter = '_'.freeze @strong_delimiter = '*'.freeze @inline_options = {} @tag_border = ' '.freeze end |
Instance Attribute Details
#mathml2asciimath ⇒ Object
Returns the value of attribute mathml2asciimath.
3 4 5 |
# File 'lib/reverse_asciidoctor/config.rb', line 3 def mathml2asciimath @mathml2asciimath end |
#tag_border ⇒ Object
Returns the value of attribute tag_border.
3 4 5 |
# File 'lib/reverse_asciidoctor/config.rb', line 3 def tag_border @tag_border end |
#unknown_tags ⇒ Object
Returns the value of attribute unknown_tags.
3 4 5 |
# File 'lib/reverse_asciidoctor/config.rb', line 3 def @unknown_tags end |
Instance Method Details
#with(options = {}) ⇒ Object
14 15 16 17 18 19 |
# File 'lib/reverse_asciidoctor/config.rb', line 14 def with( = {}) @inline_options = result = yield @inline_options = {} result end |