Class: Chem::Sybyl::SybylBond
- Inherits:
-
Object
- Object
- Chem::Sybyl::SybylBond
- Includes:
- Bond
- Defined in:
- lib/chem/db/sybyl.rb
Instance Attribute Summary collapse
-
#b ⇒ Object
readonly
Returns the value of attribute b.
-
#e ⇒ Object
readonly
Returns the value of attribute e.
Attributes included from Bond
Instance Method Summary collapse
-
#initialize(line) ⇒ SybylBond
constructor
A new instance of SybylBond.
Methods included from Bond
#bond_type, #stereo, #to_mdl, #topology
Constructor Details
#initialize(line) ⇒ SybylBond
Returns a new instance of SybylBond.
103 104 105 106 107 108 |
# File 'lib/chem/db/sybyl.rb', line 103 def initialize line # @line = line @b = line[6..10].to_i @e = line[11..15].to_i @v = line[16..17].to_i end |
Instance Attribute Details
#b ⇒ Object (readonly)
Returns the value of attribute b.
102 103 104 |
# File 'lib/chem/db/sybyl.rb', line 102 def b @b end |
#e ⇒ Object (readonly)
Returns the value of attribute e.
102 103 104 |
# File 'lib/chem/db/sybyl.rb', line 102 def e @e end |