F2C 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/F2C.rb +1 -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: 5eca1cee2c094faa25f6bbab55c2cdc82e26936b
|
4
|
+
data.tar.gz: 23d1f90ba3d323593b4cf86868545e57c6a11d7e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 50891e402bb5b1053c3499ae4156d2745adfc3754583717956325a2990683b75e9febfddb5232d12d2c9303f62fdd2d68656897bc45531724eef1c26bbe13531
|
7
|
+
data.tar.gz: a925d74d15d2ac087e5c5fe46bf1e215e7ca8a4a9e4d0e6a033e92338c39481ab0efb105bd1e9bea07beabb10e17699601b54f339a395d4f41899299db2aa63c
|
data/lib/F2C.rb
CHANGED
@@ -8,7 +8,7 @@ module Convert
|
|
8
8
|
# launch irb
|
9
9
|
# require 'F2C'
|
10
10
|
# Convert.F2C(value) - "converts Fahrenheit to Celsius"
|
11
|
-
# Convert.
|
11
|
+
# Convert.C2F(value) - "converts Celsius to Fahrenheit"
|
12
12
|
|
13
13
|
def self.F2C value
|
14
14
|
converted_value = ((value - 32) * 5.0/9.0).round
|