Class: Chem::CDX::Uint8
- Inherits:
-
Object
- Object
- Chem::CDX::Uint8
- 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) ⇒ Uint8
constructor
A new instance of Uint8.
- #to_xml ⇒ Object
Constructor Details
#initialize(num) ⇒ Uint8
Returns a new instance of Uint8.
994 995 996 |
# File 'lib/chem/db/cdx.rb', line 994 def initialize num @num = num end |
Instance Attribute Details
#num ⇒ Object (readonly)
Returns the value of attribute num.
993 994 995 |
# File 'lib/chem/db/cdx.rb', line 993 def num @num end |
Instance Method Details
#to_xml ⇒ Object
997 998 999 |
# File 'lib/chem/db/cdx.rb', line 997 def to_xml return @num.to_s end |