Module: Thredded::HtmlPipeline::SpoilerTagFilter
- Defined in:
- lib/thredded/html_pipeline/spoiler_tag_filter.rb
Defined Under Namespace
Classes: AfterMarkup, BeforeMarkup
Constant Summary collapse
- PLACEHOLDER_START_CLASS =
'thredded-spoiler-placeholder-start-24uob7bajv5'
- PLACEHOLDER_END_CLASS =
'thredded-spoiler-placeholder-end-24uob7bajv5'
- PLACEHOLDER_START_BLOCK =
"<p class='#{PLACEHOLDER_START_CLASS}' title='%s'></p>"
- PLACEHOLDER_END_BLOCK =
"<p class='#{PLACEHOLDER_END_CLASS}' title='%s'></p>"
- PLACEHOLDER_START_SPAN =
"<i class='#{PLACEHOLDER_START_CLASS}' title='%s'></i>"
- PLACEHOLDER_END_SPAN =
"<i class='#{PLACEHOLDER_END_CLASS}' title='%s'></i>"
Class Attribute Summary collapse
-
.spoiler_tags ⇒ [[String, String]]
Pairs of opening and closing spoiler tags.
- .spoiler_tags_inverse_replacements ⇒ Object readonly private
- .spoiler_tags_replacements ⇒ Object readonly private
Class Attribute Details
.spoiler_tags ⇒ [[String, String]]
Returns Pairs of opening and closing spoiler tags.
15 16 17 |
# File 'lib/thredded/html_pipeline/spoiler_tag_filter.rb', line 15 def @spoiler_tags end |
.spoiler_tags_inverse_replacements ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
21 22 23 |
# File 'lib/thredded/html_pipeline/spoiler_tag_filter.rb', line 21 def @spoiler_tags_inverse_replacements end |
.spoiler_tags_replacements ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
18 19 20 |
# File 'lib/thredded/html_pipeline/spoiler_tag_filter.rb', line 18 def @spoiler_tags_replacements end |