Class: Chem::CMLAtom
Constant Summary
Constants included from Atom
Instance Attribute Summary collapse
-
#node_id ⇒ Object
readonly
Returns the value of attribute node_id.
Attributes included from Atom
#cdk_atom, #charge, #color, #element, #label, #mass, #ob_atom, #rings, #v_pos, #visible, #x, #y, #z
Instance Method Summary collapse
-
#initialize(element, node_id) ⇒ CMLAtom
constructor
A new instance of CMLAtom.
Methods included from Atom
#atomic_number, #electro_negativity, #method_missing, #natural_bond_order, #to_mdl, #to_sybyl, #weight
Methods included from Transform::ThreeDimension
Methods included from Transform::TwoDimension
Constructor Details
#initialize(element, node_id) ⇒ CMLAtom
Returns a new instance of CMLAtom.
10 11 12 13 |
# File 'lib/chem/db/cml.rb', line 10 def initialize(element, node_id) @element = element @node_id = node_id end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Chem::Atom
Instance Attribute Details
#node_id ⇒ Object (readonly)
Returns the value of attribute node_id.
8 9 10 |
# File 'lib/chem/db/cml.rb', line 8 def node_id @node_id end |