footing 0.0.9 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Gemfile +1 -0
- data/Gemfile.lock +2 -0
- data/lib/extensions/numeric.rb +2 -4
- metadata +2 -2
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
data/lib/extensions/numeric.rb
CHANGED
@@ -3,14 +3,12 @@ module Footing
|
|
3
3
|
|
4
4
|
# Returns a positive representation of the number.
|
5
5
|
def positive
|
6
|
-
|
7
|
-
flip_sign
|
6
|
+
abs
|
8
7
|
end
|
9
8
|
|
10
9
|
# Returns a negative representation of the number.
|
11
10
|
def negative
|
12
|
-
|
13
|
-
flip_sign
|
11
|
+
abs.flip_sign
|
14
12
|
end
|
15
13
|
|
16
14
|
# Flips the sign on the number making it either either positive or negative.
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: footing
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-09-
|
12
|
+
date: 2012-09-06 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: ! ' Footing is a utillity belt library that employs sane monkey patching.
|
15
15
|
|