Skip to content
Permalink
Browse files

Merge pull request #649 from kachick/implement-fixnum-magnitude

Implement Fixnum#magnitude
  • Loading branch information
alex committed Apr 21, 2013
2 parents 57dcafc + dea4e74 commit 4820bab07ac269d201deec8a347eb98a55522235
Showing with 4 additions and 1 deletion.
  1. +4 −0 lib-topaz/fixnum.rb
  2. +0 −1 spec/tags/core/fixnum/magnitude_tags.txt
@@ -29,6 +29,10 @@ def __id__
self * 2 + 1
end

def magnitude
abs
end

def step(limit, step=1)
idx = self
if limit.is_a?(Float) || step.is_a?(Float)

This file was deleted.

0 comments on commit 4820bab

Please sign in to comment.
You can’t perform that action at this time.