module Koala2016Gem
Constants
- VERSION
Public Instance Methods
check_number?(n)
click to toggle source
# File lib/koala_2016_gem.rb, line 19 def check_number?(n) if n >= 1000 and n <= 9999 then return n.even? end return false end
enough_length(str)
click to toggle source
# File lib/koala_2016_gem.rb, line 6 def enough_length(str) if str.length < 3 then return false end if str.length > 8 then return false end return true end