Module: Chem::KEGG::Atom

Included in:
KCFAtom
Defined in:
lib/chem/db/kcf.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#kcf_propObject

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_typeObject

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_lineObject

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