class Chem::Templates::Bond

Defined in:

chem/templates/bond.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(lhs : Atom, rhs : Atom, order : BondOrder = :single) #

[View source]

Instance Method Detail

def ==(rhs : self) : Bool #
Description copied from class Reference

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


[View source]
def atoms : Tuple(Atom, Atom) #

[View source]
def double?(*args, **options) #

[View source]
def double?(*args, **options, &) #

[View source]
def includes?(atom_t : Atom) : Bool #

[View source]
def includes?(name : String) : Bool #

[View source]
def order : BondOrder #

[View source]
def other(atom_t : Atom) : Atom #

[View source]
def other(name : String) : Atom #

[View source]
def other?(atom_t : Atom) : Atom | Nil #

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

[View source]
def reverse : self #

[View source]
def single?(*args, **options) #

[View source]
def single?(*args, **options, &) #

[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 triple?(*args, **options) #

[View source]
def triple?(*args, **options, &) #

[View source]
def zero?(*args, **options) #

[View source]
def zero?(*args, **options, &) #

[View source]