markbates / markbates/configatron
Suggestion: Allow asking `configatron.something?`
Open
Nobody has claimed this yet.
- Dominant language
- Ruby
- Stars
- 593
- Forks
- 74
- PR merge metrics
- No merged PRs in 30d
Description
It would be nice if configatron.param? will simply be (conceptually-) aliased to !! configatron.param
# Allow asking `configatron.something?`
configatron.force = false
p configatron.force ? "forced" : "not forced"
p configatron.force? ? "forced" : "not forced"
# => "not forced"
# "forced" (but expected "not forced")
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the configatron.param entry point and how the proposed configatron.param? call would resolve. Done means a false value produces the same "not forced" result as configatron.force in the example, while a true value produces "forced".
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ruby
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100