elementic 1.1 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/elementic/periodic_table.rb +10 -7
- data/lib/elementic/version.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: d7c629bbc4ef20bee9644e2367df3e08e184d76b
|
4
|
+
data.tar.gz: 7bd5f8dca276ffb988b100a4df9049a340fafa3a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 96996646bef620e499d3f3b7613701a1248a87cbc034d89ca3cf7b344bb652e61d04d56e492a01633b9a7d43bdbc9f34c3dc2e5e62288f125ea9ad7c6d3abe22
|
7
|
+
data.tar.gz: 7446be036db3c618b11120fe8fd76279d4b94535d53f529c09398affff17d82f498f98545925665f300b3ed73553206e8ee7bd3c4be6d20d91b69143275cdade
|
data/README.md
CHANGED
@@ -1,22 +1,25 @@
|
|
1
1
|
require_relative 'element'
|
2
2
|
|
3
|
+
# Elements Module
|
4
|
+
# Access elements with Elements::ELEMENT
|
3
5
|
module Elements
|
4
6
|
HYDROGEN = Element.new(
|
5
7
|
name:'Hydrogen', symbol:'H', ion_charges:[+1, -1],
|
6
|
-
atomic_number:1, atomic_mass:1.
|
8
|
+
atomic_number:1, atomic_mass:1.008
|
7
9
|
)
|
10
|
+
|
8
11
|
HELIUM = Element.new(
|
9
12
|
name: 'Helium', symbol:'He', ion_charges:[],
|
10
|
-
atomic_number:
|
11
|
-
|
13
|
+
atomic_number:HYDROGEN.atomic_number + 1, atomic_mass:4.002602
|
14
|
+
)
|
12
15
|
|
13
16
|
LITHIUM = Element.new(
|
14
17
|
name: 'Lithium', symbol: 'Li', ion_charges:[+1],
|
15
|
-
atomic_number:
|
16
|
-
|
18
|
+
atomic_number:HELIUM.atomic_number + 1, atomic_mass:6.94
|
19
|
+
)
|
17
20
|
|
18
21
|
BERYLLIUM = Element.new(
|
19
22
|
name: 'Beryllium', symbol: 'Be', ion_charges:[+2],
|
20
|
-
atomic_number:
|
21
|
-
|
23
|
+
atomic_number:LITHIUM.atomic_number + 1, atomic_mass:9.0121831
|
24
|
+
)
|
22
25
|
end
|
data/lib/elementic/version.rb
CHANGED