class Chem::Element
- Chem::Element
- Reference
- Object
Defined in:
chem/core/element.crInstance Method Summary
-
#actinium?
Returns
true
if the element is "Actinium", elsefalse
. -
#aluminum?
Returns
true
if the element is "Aluminum", elsefalse
. -
#americium?
Returns
true
if the element is "Americium", elsefalse
. -
#antimony?
Returns
true
if the element is "Antimony", elsefalse
. -
#argon?
Returns
true
if the element is "Argon", elsefalse
. -
#arsenic?
Returns
true
if the element is "Arsenic", elsefalse
. -
#astatine?
Returns
true
if the element is "Astatine", elsefalse
. - #atomic_number : Int32
-
#barium?
Returns
true
if the element is "Barium", elsefalse
. -
#berkelium?
Returns
true
if the element is "Berkelium", elsefalse
. -
#beryllium?
Returns
true
if the element is "Beryllium", elsefalse
. -
#bismuth?
Returns
true
if the element is "Bismuth", elsefalse
. -
#bohrium?
Returns
true
if the element is "Bohrium", elsefalse
. -
#boron?
Returns
true
if the element is "Boron", elsefalse
. -
#bromine?
Returns
true
if the element is "Bromine", elsefalse
. -
#cadmium?
Returns
true
if the element is "Cadmium", elsefalse
. -
#calcium?
Returns
true
if the element is "Calcium", elsefalse
. -
#californium?
Returns
true
if the element is "Californium", elsefalse
. -
#carbon?
Returns
true
if the element is "Carbon", elsefalse
. -
#cerium?
Returns
true
if the element is "Cerium", elsefalse
. -
#cesium?
Returns
true
if the element is "Cesium", elsefalse
. -
#chlorine?
Returns
true
if the element is "Chlorine", elsefalse
. -
#chromium?
Returns
true
if the element is "Chromium", elsefalse
. -
#cobalt?
Returns
true
if the element is "Cobalt", elsefalse
. -
#copernicium?
Returns
true
if the element is "Copernicium", elsefalse
. -
#copper?
Returns
true
if the element is "Copper", elsefalse
. - #covalent_radius : Float64
-
#curium?
Returns
true
if the element is "Curium", elsefalse
. -
#darmstadtium?
Returns
true
if the element is "Darmstadtium", elsefalse
. -
#dubnium?
Returns
true
if the element is "Dubnium", elsefalse
. -
#dysprosium?
Returns
true
if the element is "Dysprosium", elsefalse
. -
#einsteinium?
Returns
true
if the element is "Einsteinium", elsefalse
. -
#erbium?
Returns
true
if the element is "Erbium", elsefalse
. -
#europium?
Returns
true
if the element is "Europium", elsefalse
. -
#fermium?
Returns
true
if the element is "Fermium", elsefalse
. -
#flerovium?
Returns
true
if the element is "Flerovium", elsefalse
. -
#fluorine?
Returns
true
if the element is "Fluorine", elsefalse
. -
#francium?
Returns
true
if the element is "Francium", elsefalse
. -
#gadolinium?
Returns
true
if the element is "Gadolinium", elsefalse
. -
#gallium?
Returns
true
if the element is "Gallium", elsefalse
. -
#germanium?
Returns
true
if the element is "Germanium", elsefalse
. -
#gold?
Returns
true
if the element is "Gold", elsefalse
. -
#hafnium?
Returns
true
if the element is "Hafnium", elsefalse
. -
#hassium?
Returns
true
if the element is "Hassium", elsefalse
. - #heavy? : Bool
-
#helium?
Returns
true
if the element is "Helium", elsefalse
. -
#holmium?
Returns
true
if the element is "Holmium", elsefalse
. -
#hydrogen?
Returns
true
if the element is "Hydrogen", elsefalse
. -
#indium?
Returns
true
if the element is "Indium", elsefalse
. -
#iodine?
Returns
true
if the element is "Iodine", elsefalse
. -
#iridium?
Returns
true
if the element is "Iridium", elsefalse
. -
#iron?
Returns
true
if the element is "Iron", elsefalse
. -
#krypton?
Returns
true
if the element is "Krypton", elsefalse
. -
#lanthanum?
Returns
true
if the element is "Lanthanum", elsefalse
. -
#lawrencium?
Returns
true
if the element is "Lawrencium", elsefalse
. -
#lead?
Returns
true
if the element is "Lead", elsefalse
. -
#lithium?
Returns
true
if the element is "Lithium", elsefalse
. -
#livermorium?
Returns
true
if the element is "Livermorium", elsefalse
. -
#lutetium?
Returns
true
if the element is "Lutetium", elsefalse
. -
#magnesium?
Returns
true
if the element is "Magnesium", elsefalse
. -
#manganese?
Returns
true
if the element is "Manganese", elsefalse
. - #mass : Float64
- #max_bonds : Int32
- #max_valence : Int32 | Nil
-
#meitnerium?
Returns
true
if the element is "Meitnerium", elsefalse
. -
#mendelevium?
Returns
true
if the element is "Mendelevium", elsefalse
. -
#mercury?
Returns
true
if the element is "Mercury", elsefalse
. -
#molybdenum?
Returns
true
if the element is "Molybdenum", elsefalse
. -
#moscovium?
Returns
true
if the element is "Moscovium", elsefalse
. - #name : String
-
#neodymium?
Returns
true
if the element is "Neodymium", elsefalse
. -
#neon?
Returns
true
if the element is "Neon", elsefalse
. -
#neptunium?
Returns
true
if the element is "Neptunium", elsefalse
. -
#nickel?
Returns
true
if the element is "Nickel", elsefalse
. -
#nihonium?
Returns
true
if the element is "Nihonium", elsefalse
. -
#niobium?
Returns
true
if the element is "Niobium", elsefalse
. -
#nitrogen?
Returns
true
if the element is "Nitrogen", elsefalse
. -
#nobelium?
Returns
true
if the element is "Nobelium", elsefalse
. -
#oganesson?
Returns
true
if the element is "Oganesson", elsefalse
. -
#osmium?
Returns
true
if the element is "Osmium", elsefalse
. -
#oxygen?
Returns
true
if the element is "Oxygen", elsefalse
. -
#palladium?
Returns
true
if the element is "Palladium", elsefalse
. -
#phosphorus?
Returns
true
if the element is "Phosphorus", elsefalse
. -
#platinum?
Returns
true
if the element is "Platinum", elsefalse
. -
#plutonium?
Returns
true
if the element is "Plutonium", elsefalse
. -
#polonium?
Returns
true
if the element is "Polonium", elsefalse
. -
#potassium?
Returns
true
if the element is "Potassium", elsefalse
. -
#praseodymium?
Returns
true
if the element is "Praseodymium", elsefalse
. -
#proactinium?
Returns
true
if the element is "Proactinium", elsefalse
. -
#promethium?
Returns
true
if the element is "Promethium", elsefalse
. -
#radium?
Returns
true
if the element is "Radium", elsefalse
. -
#radon?
Returns
true
if the element is "Radon", elsefalse
. -
#rhenium?
Returns
true
if the element is "Rhenium", elsefalse
. -
#rhodium?
Returns
true
if the element is "Rhodium", elsefalse
. -
#roentgenium?
Returns
true
if the element is "Roentgenium", elsefalse
. -
#rubidium?
Returns
true
if the element is "Rubidium", elsefalse
. -
#ruthenium?
Returns
true
if the element is "Ruthenium", elsefalse
. -
#rutherfordium?
Returns
true
if the element is "Rutherfordium", elsefalse
. -
#samarium?
Returns
true
if the element is "Samarium", elsefalse
. -
#scandium?
Returns
true
if the element is "Scandium", elsefalse
. -
#seaborgium?
Returns
true
if the element is "Seaborgium", elsefalse
. -
#selenium?
Returns
true
if the element is "Selenium", elsefalse
. -
#silicon?
Returns
true
if the element is "Silicon", elsefalse
. -
#silver?
Returns
true
if the element is "Silver", elsefalse
. -
#sodium?
Returns
true
if the element is "Sodium", elsefalse
. -
#strontium?
Returns
true
if the element is "Strontium", elsefalse
. -
#sulfur?
Returns
true
if the element is "Sulfur", elsefalse
. - #symbol : String
-
#tantalum?
Returns
true
if the element is "Tantalum", elsefalse
. -
#target_electrons(valence : Int32) : Int32
Returns the total number of electrons in the valence shell.
-
#target_valence(effective_valence : Int) : Int32
Returns the target valence given the effective valence.
-
#technetium?
Returns
true
if the element is "Technetium", elsefalse
. -
#tellurium?
Returns
true
if the element is "Tellurium", elsefalse
. -
#tennessine?
Returns
true
if the element is "Tennessine", elsefalse
. -
#terbium?
Returns
true
if the element is "Terbium", elsefalse
. -
#thallium?
Returns
true
if the element is "Thallium", elsefalse
. -
#thorium?
Returns
true
if the element is "Thorium", elsefalse
. -
#thulium?
Returns
true
if the element is "Thulium", elsefalse
. -
#tin?
Returns
true
if the element is "Tin", elsefalse
. -
#titanium?
Returns
true
if the element is "Titanium", elsefalse
. -
#to_s(io : IO) : Nil
Appends a short String representation of this object which includes its class name and its object address.
-
#tungsten?
Returns
true
if the element is "Tungsten", elsefalse
. -
#uranium?
Returns
true
if the element is "Uranium", elsefalse
. - #valence : Int32 | Nil
- #valence_electrons : Int32
- #valences : Array(Int32)
-
#vanadium?
Returns
true
if the element is "Vanadium", elsefalse
. - #vdw_radius : Float64
-
#xenon?
Returns
true
if the element is "Xenon", elsefalse
. -
#ytterbium?
Returns
true
if the element is "Ytterbium", elsefalse
. -
#yttrium?
Returns
true
if the element is "Yttrium", elsefalse
. -
#zinc?
Returns
true
if the element is "Zinc", elsefalse
. -
#zirconium?
Returns
true
if the element is "Zirconium", elsefalse
.
Instance Method Detail
Returns the total number of electrons in the valence shell.
This method follows the octet rule (duet for hydrogen and helium), accounting for the expanded octet in the cases of phosphorus, sulfur, etc.
Returns the target valence given the effective valence. This is useful for multi-valent elements (e.g., sulfur, phosphorus).
Appends a short String representation of this object which includes its class name and its object address.
class Person
def initialize(@name : String, @age : Int32)
end
end
Person.new("John", 32).to_s # => #<Person:0x10a199f20>