Class: DownloadSolutions::Api::Reddit::CleanBodies
- Inherits:
-
Object
- Object
- DownloadSolutions::Api::Reddit::CleanBodies
- Defined in:
- lib/download_solutions/api/reddit/clean_bodies.rb
Constant Summary collapse
- MARKDOWN_PARSER =
Redcarpet::Markdown.new(Redcarpet::Render::HTML, fenced_code_blocks: true)
Class Method Summary collapse
-
.call(params:) ⇒ void
Clean up comment bodies by removing unwanted characters, translating encoded characters, and standardizing to fenced (triple backtick) code blocks.
Class Method Details
.call(params:) ⇒ void
This method returns an undefined value.
Clean up comment bodies by removing unwanted characters, translating encoded characters, and standardizing to fenced (triple backtick) code blocks.
13 14 15 16 17 |
# File 'lib/download_solutions/api/reddit/clean_bodies.rb', line 13 def self.call(params:) params.comments.each do |comment| clean_body!(comment, params.languages) end end |