Skip to content

Refactor example DSL for better consistency and clarity#152

Merged
timriley merged 12 commits into
dry-rb:mainfrom
aaronmallen:enhance-example-and-banner
May 20, 2026
Merged

Refactor example DSL for better consistency and clarity#152
timriley merged 12 commits into
dry-rb:mainfrom
aaronmallen:enhance-example-and-banner

Conversation

@aaronmallen
Copy link
Copy Markdown
Member

Simplified the example DSL syntax in commands by replacing array-based declarations with clearer method calls. Updated tests and fixtures to align with the new structure, ensuring improved readability and maintainability.

As discussed here

@aaronmallen aaronmallen force-pushed the enhance-example-and-banner branch from 6596414 to c146ebf Compare April 29, 2026 14:30
Simplified the `example` DSL syntax in commands by replacing array-based
declarations with clearer method calls. Updated tests and fixtures to
align with the new structure, ensuring improved readability and
maintainability.
@aaronmallen aaronmallen force-pushed the enhance-example-and-banner branch from c146ebf to 237aee3 Compare April 29, 2026 14:32
timriley added 8 commits May 9, 2026 17:01
Use this to make the code clearer as we prepare the output and determine indents.

Remove all “@SInCE” Yard tags since this is an “@api private” module.

Shift some methods further down the module so they’re underneath the other main methods that call them.
Mostly drop “build_” as an unneeded prefix.
@timriley timriley force-pushed the enhance-example-and-banner branch from dd53aa5 to c0922e5 Compare May 9, 2026 11:35
timriley added 2 commits May 9, 2026 21:49
This feels more natural
@timriley
Copy link
Copy Markdown
Member

timriley commented May 9, 2026

@aaronmallen Thanks for doing this! I've poked around at the code and nudged a bunch of things around (and left a trail of commits to show for it). I'm going to come back in a day or so with fresh eyes and probably merge it then. Happy for any feedback you might have in the meanwhile (or even after the fact) :)

@timriley timriley merged commit 763e520 into dry-rb:main May 20, 2026
7 checks 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