Class: Chem::CDX::Float64

Inherits:
Object
  • Object
show all
Defined in:
lib/chem/db/cdx.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(num) ⇒ Float64

Returns a new instance of Float64.



1004
1005
1006
# File 'lib/chem/db/cdx.rb', line 1004

def initialize num
  @num = num
end

Instance Attribute Details

#numObject (readonly)

Returns the value of attribute num.



1003
1004
1005
# File 'lib/chem/db/cdx.rb', line 1003

def num
  @num
end

Instance Method Details

#to_xmlObject



1007
1008
1009
# File 'lib/chem/db/cdx.rb', line 1007

def to_xml
  return @num.to_s
end