class

Chem::Templates::Residue

Inherits Reference / Object

Constructors

build
Source

Instance methods

[](atom_t : Atom, other : Atom) : Bond

Returns the bond template between the given atoms. Raises KeyError if the bond does not exist.

Source
[](name : String, other : String) : Bond

Returns the bond template between the given atoms. Raises KeyError if the bond does not exist.

Source
[](name : String) : Atom
Source
[]?(atom_t : Atom, other : Atom) : Bond | Nil

Returns the bond template between the given atoms if exists, else nil.

Source
[]?(name : String, other : String) : Bond | Nil

Returns the bond template between the given atoms if exists, else nil.

Source
[]?(name : String) : Atom | Nil
Source
atoms
Source
bonds
Source
code
Source
description
Source
formal_charge
Source
name

Returns the designated residue name.

Source
names
Source
polymer?
Source
root
Source
symmetric_atom_groups
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
type
Source