Skip to content

Instantly share code, notes, and snippets.

# Prompt:
What’s your most elegant Ruby code that does this:
* takes an array of strings and a target string
* if the target string is not in the array, return the array
* if the target string is in the array, return the array with the target string moved from its position to the end of the array.
What’s your most elegant Ruby code that does this:
* takes an array of strings and a target string
@noelrappin
noelrappin / 01_Initial command
Last active May 8, 2024 18:41
Gist for Let's Build A Gem With Rails
bundle gem change_ledger --coc --mit --exe --test=rspec --ci=github --linter=standard