Class: Chem::Sybyl::SybylBond

Inherits:
Object
  • Object
show all
Includes:
Bond
Defined in:
lib/chem/db/sybyl.rb

Instance Attribute Summary collapse

Attributes included from Bond

#color, #v

Instance Method Summary collapse

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

#bObject (readonly)

Returns the value of attribute b.



102
103
104
# File 'lib/chem/db/sybyl.rb', line 102

def b
  @b
end

#eObject (readonly)

Returns the value of attribute e.



102
103
104
# File 'lib/chem/db/sybyl.rb', line 102

def e
  @e
end