Class: Chem::CMLAtom

Inherits:
Object
  • Object
show all
Includes:
Atom
Defined in:
lib/chem/db/cml.rb

Constant Summary

Constants included from Atom

Atom::MDLAtomLineFormat

Instance Attribute Summary collapse

Attributes included from Atom

#cdk_atom, #charge, #color, #element, #label, #mass, #ob_atom, #rings, #v_pos, #visible, #x, #y, #z

Instance Method Summary collapse

Methods included from Atom

#atomic_number, #electro_negativity, #method_missing, #natural_bond_order, #to_mdl, #to_sybyl, #weight

Methods included from Transform::ThreeDimension

#z, #z=

Methods included from Transform::TwoDimension

#pos, #x, #x=, #y, #y=

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_idObject (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