How do I convert boolean values to integers?
boolean, ruby
Solution
inflection_point = (firm.inflection_point ? 1 : 0)
Problem
I have a boolean value to check if it is true, then set a local variable. How do I refactor this so it is more Ruby-ish? ``` if firm.inflection_point inflection_point = 1 else inflection_point = 0 end ```