Class: Chem::GSpanAtom
Constant Summary
Constants included from Atom
Instance Attribute Summary
Attributes included from Atom
#charge, #color, #element, #mass, #v_pos, #visible, #x, #y, #z
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(element) ⇒ GSpanAtom
constructor
A new instance of GSpanAtom.
Methods included from Atom
#atomic_number, #electro_negativity, #natural_bond_order, #to_mdl, #to_sybyl, #weight
Constructor Details
#initialize(element) ⇒ GSpanAtom
Returns a new instance of GSpanAtom.
83 84 85 |
# File 'lib/chem/db/gspan.rb', line 83 def initialize element @element = Number2Element[element] end |
Class Method Details
.parse_line(line) ⇒ Object
87 88 89 |
# File 'lib/chem/db/gspan.rb', line 87 def self.parse_line line self.new(line.split[2].to_i) end |