markbates / configatron

A super cool, simple, and feature rich configuration system for Ruby apps.

Home Page:http://www.metabates.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Suggestion: Allow asking `configatron.something?`

DannyBen opened this issue · comments

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")