Skip to content

Commit

Permalink
Refactor logic to method
Browse files Browse the repository at this point in the history
  • Loading branch information
schneems committed Nov 20, 2024
1 parent 4fac38a commit d5c291c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/rundoc/code_section.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ def render

return "" if hidden?

self.class.to_doc(result: result, env: env)
end

def self.to_doc(result: , env: )
array = [env[:before]]

result.flatten!
Expand Down

0 comments on commit d5c291c

Please sign in to comment.