Class: Chem::CDX::CDXObjectIDArray
- Inherits:
-
Object
- Object
- Chem::CDX::CDXObjectIDArray
- Defined in:
- lib/chem/db/cdx.rb
Instance Method Summary collapse
-
#initialize(array) ⇒ CDXObjectIDArray
constructor
A new instance of CDXObjectIDArray.
- #to_bin ⇒ Object
- #to_xml ⇒ Object
Constructor Details
#initialize(array) ⇒ CDXObjectIDArray
Returns a new instance of CDXObjectIDArray.
796 797 798 |
# File 'lib/chem/db/cdx.rb', line 796 def initialize array @array = array end |
Instance Method Details
#to_bin ⇒ Object
804 805 806 |
# File 'lib/chem/db/cdx.rb', line 804 def to_bin @array.pack('V') end |
#to_xml ⇒ Object
800 801 802 |
# File 'lib/chem/db/cdx.rb', line 800 def to_xml @array.collect{|a| "%d" % a}.join(" ") end |