Class: VORuby::VOTable::V1_1::TableData
- Inherits:
-
Base
- Object
- XML::Object::Base
- Base
- VORuby::VOTable::V1_1::TableData
- Defined in:
- lib/voruby/votable/1.1/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.
1758 1759 1760 |
# File 'lib/voruby/votable/1.1/votable.rb', line 1758 def trs HomogeneousNodeList.new(self.node, xpath_for(Tr), Tr) end |
#trs=(rows) ⇒ Object
Set the rows of data.
tabledata.rows = [Tr.new(), ...]
1764 1765 1766 |
# File 'lib/voruby/votable/1.1/votable.rb', line 1764 def trs=(rows) self.trs.replace(rows) end |