Class: SiSU_Tables::Table

Inherits:
Object
  • Object
show all
Defined in:
lib/sisu/xml_tables.rb

Overview

_xml

Direct Known Subclasses

TableXML, TableXMLexp

Constant Summary collapse

@@tablehead =
0
@@tablefoot =

watch #bug??? #check was @@tablefoot

[]

Instance Method Summary collapse

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_splitObject

% 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