2 3 4 5
# File 'lib/calculate_tip/builder.rb', line 2 def integer? return true if self =~ /^[1-9]\d*(\.\d+)?$/ false end