Class: Chem::CDX::Float64
- Inherits:
-
Object
- Object
- Chem::CDX::Float64
- Defined in:
- lib/chem/db/cdx.rb
Instance Attribute Summary collapse
-
#num ⇒ Object
readonly
Returns the value of attribute num.
Instance Method Summary collapse
-
#initialize(num) ⇒ Float64
constructor
A new instance of Float64.
- #to_xml ⇒ Object
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
#num ⇒ Object (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_xml ⇒ Object
1007 1008 1009 |
# File 'lib/chem/db/cdx.rb', line 1007 def to_xml return @num.to_s end |