Class: VORuby::VOTable::V1_0::TableData
- Inherits:
-
Base
- Object
- XML::Object::Base
- Base
- VORuby::VOTable::V1_0::TableData
- Defined in:
- lib/voruby/votable/1.0/votable.rb
Overview
The most typical way of representing tabular data.
Constant Summary collapse
- ELEMENT_NAME =
'TABLEDATA'
Instance Attribute Summary
Attributes inherited from XML::Object::Base
Instance Method Summary collapse
-
#initialize(defn = nil) ⇒ TableData
constructor
Create new table data.
-
#trs ⇒ Object
Retrieve the rows of data.
-
#trs=(rows) ⇒ Object
Set the rows of data.
Methods inherited from Base
#==, element_name, #get_element, #xpath_for
Methods inherited from XML::Object::Base
#==, element_name, from_file, #to_s
Constructor Details
Instance Method Details
#trs ⇒ Object
Retrieve the rows of data. Returns a HomogeneousNodeList.
1470 1471 1472 |
# File 'lib/voruby/votable/1.0/votable.rb', line 1470 def trs HomogeneousNodeList.new(self.node, xpath_for(Tr), Tr) end |
#trs=(rows) ⇒ Object
Set the rows of data.
tabledata.rows = [Tr.new(), ...]
1476 1477 1478 |
# File 'lib/voruby/votable/1.0/votable.rb', line 1476 def trs=(rows) self.trs.replace(rows) end |