Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
  • 1 commit
  • 1 file changed
  • 0 commit comments
  • 1 contributor
Commits on May 24, 2011
Rob Holland Fix ruby 1.9.2 syntax issue. ee35f58
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/runt.rb
View
6 lib/runt.rb
@@ -88,9 +88,9 @@ def ordinalize(number)
"#{number}th"
else
case "#{number.to_i%10}"
- when "1": "#{number}st"
- when "2": "#{number}nd"
- when "3": "#{number}rd"
+ when "1" then "#{number}st"
+ when "2" then "#{number}nd"
+ when "3" then "#{number}rd"
else "#{number}th"
end
end

No commit comments for this range

Something went wrong with that request. Please try again.