Sha256: 9a0b5931ca7bdff4873ed6deca8117b6e31ae6ece4198edb82b1f48196480203

Contents?: true

Size: 414 Bytes

Versions: 2

Compression:

Stored size: 414 Bytes

Contents

require "koala_2016_gem/version"

module Koala2016Gem
  module_function 

    def enough_length(str)

        if str.length < 3 then
            return false
        end

        if str.length > 8 then
            return false
        end

        return true
    end

    def check_number?(n)
     
        if n >= 1000 and n <= 9999 then
            return n.even?
        end

        return false
    end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
koala_2016_gem-0.2.0 lib/koala_2016_gem.rb
koala_2016_gem-0.1.0 lib/koala_2016_gem.rb