Skip to content

Conversation

PerezIgnacio
Copy link
Contributor

No description provided.

@PerezIgnacio PerezIgnacio force-pushed the add-workflow-rendering branch from 8dcb2d7 to 730e27b Compare October 2, 2025 21:19
# frozen_string_literal: true

module Mars
class Renderer
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this class should be part of the Rendering module/package. Also not sure if it makes sense to have a to_mermaid method here, we could have different renderers.. so either this class needs to be more specific, or it shouldn't know about mermaid I guess

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe it should be Mars::Rendering::Mermaid::Renderer ?

Copy link
Contributor Author

@PerezIgnacio PerezIgnacio Oct 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense. I've moved this logic to the Rendering::Mermaid module. My goal is to keep this as a single interface for rendering logic, without callers requiring to reference the Rendering::Mermaid:: components directly, which should stay internal to the renderer. The Mars::Renderer would now only be a sort of facade which defines a different interface, so I've removed it for now.

@PerezIgnacio PerezIgnacio merged commit 39bdf02 into main Oct 10, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants