Add Ruby method to check if float is whole.
Refactor to use idiomatic conditional methods.
Solve problem 42 using Ruby.