Last Updated: February 25, 2016
·
333
· ruianderson

Usefull ActiveSupport#inquiry method!

Maybe you gus already saw some code like:

Rails.env.production? 

You can accomplish that syntax with any string object:

person = "heisenberg".inquiry
person.heisenberg? #=> true
person.pinkman? #=> false