lib/celerity/elements/table.rb in celerity-0.0.1 vs lib/celerity/elements/table.rb in celerity-0.0.2

- old
+ new

@@ -1,16 +1,16 @@ module Celerity class Table < Element include Container - TAGS = ['table'] + TAGS = [ Identifier.new('table') ] ATTRIBUTES = BASE_ATTRIBUTES | [:summary, :width, :border, :frame, :rules, :cellspacing, :cellpadding, :align, :bgcolor] DEFAULT_HOW = :name def locate - @object = @container.locate_tagged_element(self, @how, @what) - if @object # cant call the assert_exists here, as an exists? method call will fail + super + if @object # cant call assert_exists here, as an exists? method call will fail @rows = @object.getRows @cells = [] @rows.each do |row| row.getCells.each do |c| @cells << c @@ -71,10 +71,10 @@ end private :table_body def body(how, what) assert_exists - return TableBody.new(@container, how, what, self) + return TableBody.new(@container, how, what) end def bodies assert_exists return TableBodies.new(self) \ No newline at end of file