lib/rspreadsheet/xml_tied.rb in rspreadsheet-0.2.12 vs lib/rspreadsheet/xml_tied.rb in rspreadsheet-0.2.14
- old
+ new
@@ -1,7 +1,11 @@
+require 'helpers/class_extensions'
+
module Rspreadsheet
+using ClassExtensions if RUBY_VERSION > '2.1'
+
# @private
class XMLTied
def xml
xmlnode.to_s
end
@@ -64,11 +68,11 @@
end
# abstract class. All importers MUST implement: prepare_subitem (and delete)
# terminology
-# item, subitem is object from @itemcache (quite often subclass of XMLTiedItem)
-# node, subnode is LibXML::XML::Node object
+# item, subitem is object from @itemcache (quite often subclass of XMLTiedItem)
+# node, subnode is LibXML::XML::Node object
#
# this class is made to be included, not subclassed - the reason is in delete method which calls super
# @private
module XMLTiedArray