mirror of
https://github.com/TheAlgorithms/Ruby
synced 2024-11-16 19:50:00 +01:00
4bb534f312
Add maths to directory
11 lines
190 B
Ruby
11 lines
190 B
Ruby
# frozen_string_literal: true
|
|
|
|
class Ceil
|
|
class << self
|
|
def call(number)
|
|
return number if number.is_a?(Integer) || number == number.to_i
|
|
|
|
number.to_i + 1
|
|
end
|
|
end
|
|
end
|