Skip to content

Commit

Permalink
Merge pull request #5 from yilkalargaw/yilkalargaw-patch-3
Browse files Browse the repository at this point in the history
num >= 0 && num < 100 to num.between(0,99)
  • Loading branch information
yilkalargaw authored Oct 18, 2019
2 parents e693450 + 8705b3d commit eab88d2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/geezify-rb/geezify.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ def geezify_2digit(num)
oneth_array = Array['', '፩', '፪', '፫', '፬', '፭', '፮', '፯', '፰', '፱']
tenth_array = Array['', '፲', '፳', '፴', '፵', '፶', '፷', '፸', '፹', '፺']
raise ArgumentError, ERROR_MSG1 unless num.integer? &&
num >= 0 &&
num < 100
num.between?(0,99)

tenth_array[(num / 10)] + oneth_array[num % 10]
end
Expand Down

0 comments on commit eab88d2

Please sign in to comment.