class Chem::Templates::Bond
- Chem::Templates::Bond
- Reference
- Object
Defined in:
chem/templates/bond.crConstructors
Instance Method Summary
-
#==(rhs : self) : Bool
Returns
true
if this reference is the same as other. - #atoms : Tuple(Atom, Atom)
- #double?(*args, **options)
- #double?(*args, **options, &)
- #includes?(atom_t : Atom) : Bool
- #includes?(name : String) : Bool
- #order : BondOrder
- #other(atom_t : Atom) : Atom
- #other(name : String) : Atom
- #other?(atom_t : Atom) : Atom | Nil
- #other?(name : String) : Atom | Nil
- #reverse : self
- #single?(*args, **options)
- #single?(*args, **options, &)
-
#to_s(io : IO) : Nil
Appends a short String representation of this object which includes its class name and its object address.
- #triple?(*args, **options)
- #triple?(*args, **options, &)
- #zero?(*args, **options)
- #zero?(*args, **options, &)
Constructor Detail
Instance Method Detail
def ==(rhs : self) : Bool
#
Description copied from class Reference
Returns true
if this reference is the same as other. Invokes same?
.
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>