class MiniTestPractice::MyClass

Your code goes here…

Public Instance Methods

check_number?(value) click to toggle source
# File lib/mini_test_practice.rb, line 10
def check_number?(value)
  (value >= 1000) and (value <= 9999) and (value % 2) == 0
end
divide(a, b) click to toggle source
# File lib/mini_test_practice.rb, line 18
def divide(a, b)
  a / b 
end
enough_length?(str) click to toggle source
# File lib/mini_test_practice.rb, line 14
def enough_length?(str)
  (str.length >= 3) and (str.length <= 8)
end
fizz_buzz(value) click to toggle source
# File lib/mini_test_practice.rb, line 22
def fizz_buzz(value)
  if value%15 == 0 then
     "FizzBuzz"
  elsif value%3 == 0 then "Fizz" 
  elsif value%5 == 0 then "Buzz"
  else nil
  end  
end
hello(word) click to toggle source
# File lib/mini_test_practice.rb, line 31
def hello(word)

  
end
odd?(value) click to toggle source
# File lib/mini_test_practice.rb, line 6
def odd?(value)
  (value % 2) == 1
end