[Molby Document Home] [Contents]

Module: | Molby

### Description

Molby is the module that bundles Molby-specific classes. Under Molby, the following classes are defined.

- AtomRef
- Dialog
- DialogItem
- IntGroup
- MDArena
- MolEnumerable
- Molecule
- Parameter
- ParameterRef
- ParEnumerable
- Transform
- Vector3D
- MolbyError

### Constant

HasGUI

A boolean value to represent whether if the program is running in GUI mode or not.

MbsfPath

A String describing the full path of the directory containing pre-defined mbsf files. It is equivalent to `Molby::ResourcePath + "/Scripts/mbsf"`.

ResourcePath

A String describing the full path of the directory containing `Scripts` and `amber11` resources. On Windows, it is something like `"C:/Program Files/Molby"`. On Mac, it is something like `"/Applications/Molby/Molby.app/Contents/Resources"`.

Note: up to 0.5.6, this constant was defined as Kernel::MolbyResourcePath. The old name is still available for backward compatibility. Also up to 0.5.6, the string on Windows contained backslashes instead of slashes. This changed in 0.5.7, to be more consistent with Molecule#dir or Molecule#path.

ScriptPath

A String describing the full path of the directory containing pre-defined Ruby scripts. It is equivalent to `Molby::ResourcePath + "/Scripts"`.