gmath 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gmath.rb +9 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6b24adeae515170518d5ce95a2ae97436cae3038
|
4
|
+
data.tar.gz: 17e94b0d30c19ee5fddb5166600631ef327ded45
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8cab42e433908556d6d0a04d7fc08da1bd635ecade4e731cebaa1d7eeef5d91049b7b4c0b2b63e6d067fb3988b2f53fa3f5eeba58c91be2a95851b05c74fd671
|
7
|
+
data.tar.gz: eebe4b246c4ff5ff35f81ae1db88de4b70e5a77a0575b7f86024b5e15722f1cf631802100e29f4f153ff2fda0b60054373f7cdc1fd7834b65c983dd243289e00
|
data/lib/gmath.rb
CHANGED
@@ -3,7 +3,15 @@ class Gmath
|
|
3
3
|
puts "Hello world!"
|
4
4
|
end
|
5
5
|
|
6
|
-
def self.
|
6
|
+
def self.aPlusBInSquare(a, b)
|
7
7
|
return a*a + 2*a*b + b*b
|
8
8
|
end
|
9
|
+
|
10
|
+
def self.aMinusBInSquare(a, b)
|
11
|
+
return a*a - 2*a*b + b*b
|
12
|
+
end
|
13
|
+
|
14
|
+
def currency(number)
|
15
|
+
return "$#{number}"
|
16
|
+
end
|
9
17
|
end
|