class

Chem::Templates::Atom

Inherits Reference / Object

Constructors

new(name : String, element : Element, bonded_elements : Array(Element), formal_charge : Int32 = 0, valence : Int32 | Nil = nil)
Source
new(name : String, top_spec : String, formal_charge : Int32 = 0, valence : Int32 | Nil = nil) : self
Source

Instance methods

bonded_elements
Source
element
Source
formal_charge
Source
name
Source
suffix
Source
to_s(io : IO)

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
top_spec
Source
valence
Source