class Chem::Element

Defined in:

chem/core/element.cr

Instance Method Summary

Instance Method Detail

def actinium? #

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


[View source]
def aluminum? #

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


[View source]
def americium? #

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


[View source]
def antimony? #

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


[View source]
def argon? #

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


[View source]
def arsenic? #

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


[View source]
def astatine? #

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


[View source]
def atomic_number : Int32 #

[View source]
def barium? #

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


[View source]
def berkelium? #

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


[View source]
def beryllium? #

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


[View source]
def bismuth? #

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


[View source]
def bohrium? #

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


[View source]
def boron? #

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


[View source]
def bromine? #

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


[View source]
def cadmium? #

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


[View source]
def calcium? #

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


[View source]
def californium? #

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


[View source]
def carbon? #

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


[View source]
def cerium? #

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


[View source]
def cesium? #

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


[View source]
def chlorine? #

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


[View source]
def chromium? #

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


[View source]
def cobalt? #

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


[View source]
def copernicium? #

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


[View source]
def copper? #

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


[View source]
def covalent_radius : Float64 #

[View source]
def curium? #

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


[View source]
def darmstadtium? #

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


[View source]
def dubnium? #

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


[View source]
def dysprosium? #

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


[View source]
def einsteinium? #

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


[View source]
def erbium? #

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


[View source]
def europium? #

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


[View source]
def fermium? #

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


[View source]
def flerovium? #

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


[View source]
def fluorine? #

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


[View source]
def francium? #

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


[View source]
def gadolinium? #

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


[View source]
def gallium? #

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


[View source]
def germanium? #

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


[View source]
def gold? #

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


[View source]
def hafnium? #

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


[View source]
def hassium? #

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


[View source]
def heavy? : Bool #

[View source]
def helium? #

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


[View source]
def holmium? #

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


[View source]
def hydrogen? #

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


[View source]
def indium? #

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


[View source]
def iodine? #

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


[View source]
def iridium? #

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


[View source]
def iron? #

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


[View source]
def krypton? #

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


[View source]
def lanthanum? #

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


[View source]
def lawrencium? #

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


[View source]
def lead? #

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


[View source]
def lithium? #

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


[View source]
def livermorium? #

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


[View source]
def lutetium? #

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


[View source]
def magnesium? #

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


[View source]
def manganese? #

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


[View source]
def mass : Float64 #

[View source]
def max_bonds : Int32 #

[View source]
def max_valence : Int32 | Nil #

[View source]
def meitnerium? #

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


[View source]
def mendelevium? #

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


[View source]
def mercury? #

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


[View source]
def molybdenum? #

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


[View source]
def moscovium? #

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


[View source]
def name : String #

[View source]
def neodymium? #

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


[View source]
def neon? #

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


[View source]
def neptunium? #

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


[View source]
def nickel? #

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


[View source]
def nihonium? #

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


[View source]
def niobium? #

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


[View source]
def nitrogen? #

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


[View source]
def nobelium? #

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


[View source]
def oganesson? #

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


[View source]
def osmium? #

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


[View source]
def oxygen? #

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


[View source]
def palladium? #

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


[View source]
def phosphorus? #

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


[View source]
def platinum? #

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


[View source]
def plutonium? #

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


[View source]
def polonium? #

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


[View source]
def potassium? #

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


[View source]
def praseodymium? #

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


[View source]
def proactinium? #

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


[View source]
def promethium? #

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


[View source]
def radium? #

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


[View source]
def radon? #

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


[View source]
def rhenium? #

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


[View source]
def rhodium? #

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


[View source]
def roentgenium? #

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


[View source]
def rubidium? #

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


[View source]
def ruthenium? #

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


[View source]
def rutherfordium? #

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


[View source]
def samarium? #

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


[View source]
def scandium? #

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


[View source]
def seaborgium? #

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


[View source]
def selenium? #

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


[View source]
def silicon? #

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


[View source]
def silver? #

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


[View source]
def sodium? #

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


[View source]
def strontium? #

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


[View source]
def sulfur? #

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


[View source]
def symbol : String #

[View source]
def tantalum? #

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


[View source]
def 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.


[View source]
def 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).


[View source]
def technetium? #

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


[View source]
def tellurium? #

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


[View source]
def tennessine? #

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


[View source]
def terbium? #

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


[View source]
def thallium? #

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


[View source]
def thorium? #

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


[View source]
def thulium? #

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


[View source]
def tin? #

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


[View source]
def titanium? #

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


[View source]
def to_s(io : IO) : Nil #
Description copied from class Reference

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>

[View source]
def tungsten? #

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


[View source]
def uranium? #

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


[View source]
def valence : Int32 | Nil #

[View source]
def valence_electrons : Int32 #

[View source]
def valences : Array(Int32) #

[View source]
def vanadium? #

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


[View source]
def vdw_radius : Float64 #

[View source]
def xenon? #

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


[View source]
def ytterbium? #

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


[View source]
def yttrium? #

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


[View source]
def zinc? #

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


[View source]
def zirconium? #

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


[View source]