Module: Chem::KEGG::Atom
- Included in:
- KCFAtom
- Defined in:
- lib/chem/db/kcf.rb
Instance Attribute Summary collapse
-
#kcf_prop ⇒ Object
Returns the value of attribute kcf_prop.
-
#kcf_type ⇒ Object
Returns the value of attribute kcf_type.
Instance Method Summary collapse
-
#kcf_line ⇒ Object
Returns KCF formatted line.
Instance Attribute Details
#kcf_prop ⇒ Object
Returns the value of attribute kcf_prop.
264 265 266 |
# File 'lib/chem/db/kcf.rb', line 264 def kcf_prop @kcf_prop end |
#kcf_type ⇒ Object
Returns the value of attribute kcf_type.
264 265 266 |
# File 'lib/chem/db/kcf.rb', line 264 def kcf_type @kcf_type end |
Instance Method Details
#kcf_line ⇒ Object
Returns KCF formatted line
267 268 269 270 271 272 273 |
# File 'lib/chem/db/kcf.rb', line 267 def kcf_line if @kcf_prop "%14d %3s%2s %10.4f%10.4f #%s" % [@number, @kcf_type, @element, @x, @y, @kcf_prop] else "%14d %3s%2s %10.4f%10.4f" % [@number, @kcf_type, @element, @x, @y] end end |