Module: Chem::KEGG::Bond
- Included in:
- KCFBond
- Defined in:
- lib/chem/db/kcf.rb
Instance Attribute Summary collapse
-
#kcf_prop ⇒ Object
Returns the value of attribute kcf_prop.
Instance Method Summary collapse
-
#kcf_line ⇒ Object
Returns KCF formatted line.
Instance Attribute Details
#kcf_prop ⇒ Object
Returns the value of attribute kcf_prop.
277 278 279 |
# File 'lib/chem/db/kcf.rb', line 277 def kcf_prop @kcf_prop end |
Instance Method Details
#kcf_line ⇒ Object
Returns KCF formatted line
280 281 282 283 284 285 286 |
# File 'lib/chem/db/kcf.rb', line 280 def kcf_line if @kcf_prop "%13d %4d%4d%2d #%s" % [@number, @b.number, @e.number, @multiplicity, @kcf_prop] else "%13d %4d%4d%2d" % [@number, @b.number, @e.number, @multiplicity, @kcf_prop] end end |