Sha256: 0b1e8ceb1a1e2514d8492d46cc1163f05174e753f81541cbef5f42d5571a48ee

Contents?: true

Size: 712 Bytes

Versions: 1

Compression:

Stored size: 712 Bytes

Contents

require "minitest_practice/version"

module MinitestPractice
  class Main
    def odd?(n)
      if n % 2 == 0
        return false
      end
      return true
    end

    def check_number?(n)
      if n.to_s.length == 4 and n % 2 == 0
        return true
      else
        return false
      end
    end

    def enough_length?(s)
      if s.length >= 3 and s.length <= 8
        return true
      else
        return false
      end
    end

    def devide(x,y)
      return x / y
    end

    def fizz_buzz(n)
      str = ""
      if n % 3 == 0
        str = "Fizz"
      end
      if n % 5 == 0
        str = str + "Buzz"
      end
      return str
    end

    def hello
      p "Hello"
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
minitest_practice-0.1.0 lib/minitest_practice.rb