true.boolean? #=> true
false.boolean? #=> true
#Only true or false is boolean.
Object.new.boolean? #=> false
add core_ext boolean?
Can you please demonstrate a use-case for this code? ie, in what situation does this method add clarity?
I have a search form and i need a radiobutton group to condition user(search result) who verified,unverified, or both.I use true,false and nil...
ok i think i can use params.has_key?
just provide more way...
Thanks for the contribution but Active Support isn't meant to be a general Ruby extensions library, its main purpose is to provide abstractions, utilities, etc. that either support the other frameworks within Rails or ease the development of web applications. Since any use within an app is likely to be limited it's not worth polluting the global method namespace.