elementic 0.8 → 0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/elementic.rb +3 -3
- 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: 40c0c94d2f0a6216a79e963222201329184326ed
|
4
|
+
data.tar.gz: f54a6c4531419edd8e44f4092c9cbe97a0292ef2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: efb7c6d83b3713d60504f8ae2f3edd625ca83cc6506bb8ee26eea1ecd9a754dd2280d281e1b644a7ce999b04f0aa5aa5dbaa4281595bf5d626e5b5a7279c2686
|
7
|
+
data.tar.gz: 966fd5abfe42c7ad25690c809a21a0b7b238bfb6c64f577ccfecb57d3e255158ddb7b4c25d3368de4122a836ebcea35e0073bda87db95aa8266212ed6f3efe11
|
data/lib/elementic.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
-
VERSION = '0.
|
2
|
+
VERSION = '0.9'
|
3
3
|
|
4
4
|
$elements = {
|
5
5
|
'H' => 'Hydrogen',
|
@@ -111,6 +111,7 @@ $elements = {
|
|
111
111
|
'Bh' => 'Bohrium',
|
112
112
|
'Hs' => 'Hassium',
|
113
113
|
'Mt' => 'Meitnerium'
|
114
|
+
# add stable elements
|
114
115
|
}
|
115
116
|
|
116
117
|
# Define some extra methods for class String
|
@@ -193,8 +194,7 @@ class Elementic
|
|
193
194
|
|
194
195
|
def self.list
|
195
196
|
$elements.each do |i|
|
196
|
-
|
197
|
-
puts
|
197
|
+
print "#{i} \n"
|
198
198
|
end
|
199
199
|
return $elements.length
|
200
200
|
end
|