Class: SiSU_Tables::Table
- Inherits:
-
Object
- Object
- SiSU_Tables::Table
- Defined in:
- lib/sisu/xml_tables.rb
Overview
_xml
Direct Known Subclasses
Constant Summary collapse
- @@tablehead =
0
- @@tablefoot =
watch #bug??? #check was @@tablefoot
[]
Instance Method Summary collapse
-
#initialize(one, ocn = '') ⇒ Table
constructor
A new instance of Table.
-
#table_split ⇒ Object
% used but, no longer operational, revisit.
Constructor Details
#initialize(one, ocn = '') ⇒ Table
Returns a new instance of Table.
59 60 61 |
# File 'lib/sisu/xml_tables.rb', line 59 def initialize(one,ocn='') @one,@parablock,@ocn=one,one,ocn end |
Instance Method Details
#table_split ⇒ Object
% used but, no longer operational, revisit
62 63 64 65 66 67 68 69 |
# File 'lib/sisu/xml_tables.rb', line 62 def table_split #% used but, no longer operational, revisit @new_content=[] @one.split(/\n/).each do |parablock| table=TableXML.new("#{parablock}\n") @new_content << table.table end @new_content.join end |