class

Chem::Templates::Bond

Inherits Reference / Object

Constructors

new(lhs : Atom, rhs : Atom, order : BondOrder = :single)
Source

Instance methods

==(rhs : self) : Bool

Returns true if this reference is the same as other. Invokes same?.

Source
atoms
Source
double?(*args, **options)
Source
double?(*args, **options, &)
Source
includes?(atom_t : Atom) : Bool
Source
includes?(name : String) : Bool
Source
order
Source
other(atom_t : Atom) : Atom
Source
other(name : String) : Atom
Source
other?(atom_t : Atom) : Atom | Nil
Source
other?(name : String) : Atom | Nil
Source
reverse
Source
single?(*args, **options)
Source
single?(*args, **options, &)
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
triple?(*args, **options)
Source
triple?(*args, **options, &)
Source
zero?(*args, **options)
Source
zero?(*args, **options, &)
Source