class

Chem::Element

Inherits Reference / Object

Instance methods

actinium?

Returns true if the element is "Actinium", else false.

Source
aluminum?

Returns true if the element is "Aluminum", else false.

Source
americium?

Returns true if the element is "Americium", else false.

Source
antimony?

Returns true if the element is "Antimony", else false.

Source
argon?

Returns true if the element is "Argon", else false.

Source
arsenic?

Returns true if the element is "Arsenic", else false.

Source
astatine?

Returns true if the element is "Astatine", else false.

Source
atomic_number
Source
barium?

Returns true if the element is "Barium", else false.

Source
berkelium?

Returns true if the element is "Berkelium", else false.

Source
beryllium?

Returns true if the element is "Beryllium", else false.

Source
bismuth?

Returns true if the element is "Bismuth", else false.

Source
bohrium?

Returns true if the element is "Bohrium", else false.

Source
boron?

Returns true if the element is "Boron", else false.

Source
bromine?

Returns true if the element is "Bromine", else false.

Source
cadmium?

Returns true if the element is "Cadmium", else false.

Source
calcium?

Returns true if the element is "Calcium", else false.

Source
californium?

Returns true if the element is "Californium", else false.

Source
carbon?

Returns true if the element is "Carbon", else false.

Source
cerium?

Returns true if the element is "Cerium", else false.

Source
cesium?

Returns true if the element is "Cesium", else false.

Source
chlorine?

Returns true if the element is "Chlorine", else false.

Source
chromium?

Returns true if the element is "Chromium", else false.

Source
cobalt?

Returns true if the element is "Cobalt", else false.

Source
copernicium?

Returns true if the element is "Copernicium", else false.

Source
copper?

Returns true if the element is "Copper", else false.

Source
covalent_radius
Source
curium?

Returns true if the element is "Curium", else false.

Source
darmstadtium?

Returns true if the element is "Darmstadtium", else false.

Source
dubnium?

Returns true if the element is "Dubnium", else false.

Source
dysprosium?

Returns true if the element is "Dysprosium", else false.

Source
einsteinium?

Returns true if the element is "Einsteinium", else false.

Source
erbium?

Returns true if the element is "Erbium", else false.

Source
europium?

Returns true if the element is "Europium", else false.

Source
fermium?

Returns true if the element is "Fermium", else false.

Source
flerovium?

Returns true if the element is "Flerovium", else false.

Source
fluorine?

Returns true if the element is "Fluorine", else false.

Source
francium?

Returns true if the element is "Francium", else false.

Source
gadolinium?

Returns true if the element is "Gadolinium", else false.

Source
gallium?

Returns true if the element is "Gallium", else false.

Source
germanium?

Returns true if the element is "Germanium", else false.

Source
gold?

Returns true if the element is "Gold", else false.

Source
hafnium?

Returns true if the element is "Hafnium", else false.

Source
hassium?

Returns true if the element is "Hassium", else false.

Source
heavy?
Source
helium?

Returns true if the element is "Helium", else false.

Source
holmium?

Returns true if the element is "Holmium", else false.

Source
hydrogen?

Returns true if the element is "Hydrogen", else false.

Source
indium?

Returns true if the element is "Indium", else false.

Source
iodine?

Returns true if the element is "Iodine", else false.

Source
iridium?

Returns true if the element is "Iridium", else false.

Source
iron?

Returns true if the element is "Iron", else false.

Source
krypton?

Returns true if the element is "Krypton", else false.

Source
lanthanum?

Returns true if the element is "Lanthanum", else false.

Source
lawrencium?

Returns true if the element is "Lawrencium", else false.

Source
lead?

Returns true if the element is "Lead", else false.

Source
lithium?

Returns true if the element is "Lithium", else false.

Source
livermorium?

Returns true if the element is "Livermorium", else false.

Source
lutetium?

Returns true if the element is "Lutetium", else false.

Source
magnesium?

Returns true if the element is "Magnesium", else false.

Source
manganese?

Returns true if the element is "Manganese", else false.

Source
mass
Source
max_bonds
Source
max_valence
Source
meitnerium?

Returns true if the element is "Meitnerium", else false.

Source
mendelevium?

Returns true if the element is "Mendelevium", else false.

Source
mercury?

Returns true if the element is "Mercury", else false.

Source
molybdenum?

Returns true if the element is "Molybdenum", else false.

Source
moscovium?

Returns true if the element is "Moscovium", else false.

Source
name
Source
neodymium?

Returns true if the element is "Neodymium", else false.

Source
neon?

Returns true if the element is "Neon", else false.

Source
neptunium?

Returns true if the element is "Neptunium", else false.

Source
nickel?

Returns true if the element is "Nickel", else false.

Source
nihonium?

Returns true if the element is "Nihonium", else false.

Source
niobium?

Returns true if the element is "Niobium", else false.

Source
nitrogen?

Returns true if the element is "Nitrogen", else false.

Source
nobelium?

Returns true if the element is "Nobelium", else false.

Source
oganesson?

Returns true if the element is "Oganesson", else false.

Source
osmium?

Returns true if the element is "Osmium", else false.

Source
oxygen?

Returns true if the element is "Oxygen", else false.

Source
palladium?

Returns true if the element is "Palladium", else false.

Source
phosphorus?

Returns true if the element is "Phosphorus", else false.

Source
platinum?

Returns true if the element is "Platinum", else false.

Source
plutonium?

Returns true if the element is "Plutonium", else false.

Source
polonium?

Returns true if the element is "Polonium", else false.

Source
potassium?

Returns true if the element is "Potassium", else false.

Source
praseodymium?

Returns true if the element is "Praseodymium", else false.

Source
proactinium?

Returns true if the element is "Proactinium", else false.

Source
promethium?

Returns true if the element is "Promethium", else false.

Source
radium?

Returns true if the element is "Radium", else false.

Source
radon?

Returns true if the element is "Radon", else false.

Source
rhenium?

Returns true if the element is "Rhenium", else false.

Source
rhodium?

Returns true if the element is "Rhodium", else false.

Source
roentgenium?

Returns true if the element is "Roentgenium", else false.

Source
rubidium?

Returns true if the element is "Rubidium", else false.

Source
ruthenium?

Returns true if the element is "Ruthenium", else false.

Source
rutherfordium?

Returns true if the element is "Rutherfordium", else false.

Source
samarium?

Returns true if the element is "Samarium", else false.

Source
scandium?

Returns true if the element is "Scandium", else false.

Source
seaborgium?

Returns true if the element is "Seaborgium", else false.

Source
selenium?

Returns true if the element is "Selenium", else false.

Source
silicon?

Returns true if the element is "Silicon", else false.

Source
silver?

Returns true if the element is "Silver", else false.

Source
sodium?

Returns true if the element is "Sodium", else false.

Source
strontium?

Returns true if the element is "Strontium", else false.

Source
sulfur?

Returns true if the element is "Sulfur", else false.

Source
symbol
Source
tantalum?

Returns true if the element is "Tantalum", else false.

Source
target_electrons(valence : Int32) : Int32

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.

Source
target_valence(effective_valence : Int) : Int32

Returns the target valence given the effective valence. This is useful for multi-valent elements (e.g., sulfur, phosphorus).

Source
technetium?

Returns true if the element is "Technetium", else false.

Source
tellurium?

Returns true if the element is "Tellurium", else false.

Source
tennessine?

Returns true if the element is "Tennessine", else false.

Source
terbium?

Returns true if the element is "Terbium", else false.

Source
thallium?

Returns true if the element is "Thallium", else false.

Source
thorium?

Returns true if the element is "Thorium", else false.

Source
thulium?

Returns true if the element is "Thulium", else false.

Source
tin?

Returns true if the element is "Tin", else false.

Source
titanium?

Returns true if the element is "Titanium", else false.

Source
to_s(io : IO) : Nil

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>
Source
tungsten?

Returns true if the element is "Tungsten", else false.

Source
uranium?

Returns true if the element is "Uranium", else false.

Source
valence
Source
valence_electrons
Source
valences
Source
vanadium?

Returns true if the element is "Vanadium", else false.

Source
vdw_radius
Source
xenon?

Returns true if the element is "Xenon", else false.

Source
ytterbium?

Returns true if the element is "Ytterbium", else false.

Source
yttrium?

Returns true if the element is "Yttrium", else false.

Source
zinc?

Returns true if the element is "Zinc", else false.

Source
zirconium?

Returns true if the element is "Zirconium", else false.

Source