Chem::Templates::Atom
Inherits Reference / Object
Constructors
new(name : String, element : Element, bonded_elements : Array(Element), formal_charge : Int32 = 0, valence : Int32 | Nil = nil)
Sourcenew(name : String, top_spec : String, formal_charge : Int32 = 0, valence : Int32 | Nil = nil) : self
SourceInstance methods
bonded_elements
Sourceelement
Sourceformal_charge
Sourcename
Sourcesuffix
Sourceto_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>
top_spec
Sourcevalence
Source