Last Updated: February 25, 2016
·
328
· 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