Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
...
Checking mergeability… Don’t worry, you can still create the pull request.
  • 1 commit
  • 1 file changed
  • 0 commit comments
  • 1 contributor
Commits on Apr 04, 2011
Courtney Hmmmmm not sure if this is what you want c3566c1
Showing with 7 additions and 0 deletions.
  1. +7 −0 factorial.rb
View
7 factorial.rb
@@ -6,3 +6,10 @@ def factorial_1234(n)
end
+class Integer
+ def factor_me_2917
+ return 1 if self == 0
+ raise StandardError, "Number must be positive" if self < 0
+ (1..self).inject{|num,next_num| num * next_num }
+ end
+end

No commit comments for this range

Something went wrong with that request. Please try again.