name | version | summary |
---|---|---|
string-inquirer |
0.0.1 |
a small, simple mixin for string equality predicates
|
Adds methods to string which allows checking for string equality through arbitrary predicate methods.
Basically what Rails does in ActiveSupport, but packaged as a tiny gem.
Add this repo to your Gemfile
:
gem "string-inquirer", "~> 0", git: "https://gist.github.com/117441fc5236de9f7d54b76894d69dec.git"
Then in your code:
runtime_mode = "development".freeze
runtime_mode = Accidental::StringInquirer.upgrade runtime_mode
"development".development? #=> NoMethodError
runtime_mode.development? #=> true