lib/class_extensions.rb in rspreadsheet-0.2.0 vs lib/class_extensions.rb in rspreadsheet-0.2.3

- old
+ new

@@ -1,12 +1,6 @@ class LibXML::XML::Node - def new_with_ns(namespace,name) - ns = self.namespaces.find_by_prefix('table') || LibXML::XML::Namespace.new(self, 'table', 'urn:oasis:names:tc:opendocument:xmlns:table:1.0') - self.namespaces.namespace = ns - self - LibXML::XML::Node.new('table-row') - end def elements result = [] each_element { |e| result << e } return result end @@ -37,12 +31,7 @@ return nil end def equals?(node2) #TODO redefine == with this self.simplification_of?(node2) and node2.simplification_of?(self) - end - def add_table_namesepace - ns = self.namespaces.find_by_prefix('table') || LibXML::XML::Namespace.new(self, 'table', 'urn:oasis:names:tc:opendocument:xmlns:table:1.0') - self.namespaces.namespace = ns - self end end \ No newline at end of file