class Chem::Templates::Ter
- Chem::Templates::Ter
- Reference
- Object
Defined in:
chem/templates/ter.crConstructors
- .build(&) : self
- .new(names : Array(String), type : ResidueType, description : String | Nil, atoms : Array(Atom), bonds : Array(Bond), root root_name : String)
Instance Method Summary
- #[](name : String) : Atom
- #[]?(name : String) : Atom | Nil
- #atoms : Array::View(Atom)
- #bonds : Array::View(Bond)
- #description : String | Nil
-
#name : String
Returns the designated residue name.
- #names : Array(String)
- #root : Atom
-
#to_s(io : IO) : Nil
Appends a short String representation of this object which includes its class name and its object address.
- #type : ResidueType
Constructor Detail
def self.new(names : Array(String), type : ResidueType, description : String | Nil, atoms : Array(Atom), bonds : Array(Bond), root root_name : String)
#
Instance Method Detail
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>