class FizzBuzz

Public Class Methods

fizzbuzz(*args) click to toggle source
# File lib/main.rb, line 5
def self.fizzbuzz(*args)
  start = args[0]
  stop = args[1]
  check = ErrorHandle.error_check(*args)
  if check
    (start..stop).each do |i|
      puts " #{FizzBuzzCheck.check_fizzbuzz(i)}" unless FizzBuzzCheck.check_fizzbuzz(i).nil?
    end
  end
end