Class Atom

pkgxx/atom.moon

An atom is a container for a package name and origin.

Version informations are planned to be added.

Constructors

Atom (s) Atom

Atoms’ constructor.

  atom = Atom "package@recipeName"

  print atom.name, atom.origin
  -- package, recipeName
Arguments
ArgumentTypeDescription
sstringA string representing a package.
Return values
TypeDescription
Atom

Instance

__tostring ! object

Atoms can be converted to debug strings safely.


__eq (other) object

Atoms can be compared for equality.

Their names and origins must be equal for two atoms to be equal.

Arguments
ArgumentTypeDescription
otherAtomAny arbitrary Atom.