class Chem::Templates::Ter

Defined in:

chem/templates/ter.cr

Constructors

Instance Method Summary

Constructor Detail

def self.build(&) : self #

[View source]
def self.new(names : Array(String), type : ResidueType, description : String | Nil, atoms : Array(Atom), bonds : Array(Bond), root root_name : String) #

[View source]

Instance Method Detail

def [](name : String) : Atom #

[View source]
def []?(name : String) : Atom | Nil #

[View source]
def atoms : Array::View(Atom) #

[View source]
def bonds : Array::View(Bond) #

[View source]
def description : String | Nil #

[View source]
def name : String #

Returns the designated residue name.


[View source]
def names : Array(String) #

[View source]
def root : Atom #

[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 type : ResidueType #

[View source]