lib/helpers/class_extensions.rb in rspreadsheet-0.4.4 vs lib/helpers/class_extensions.rb in rspreadsheet-0.4.5

- old
+ new

@@ -1,6 +1,6 @@ -if RUBY_VERSION > '2.1' +if RUBY_VERSION > '2.1' module ClassExtensions refine Array do def sum(identity = 0, &block) @@ -8,10 +8,13 @@ map(&block).sum(identity) else inject(0){ |sum, element| sum.to_f + element.to_f } || identity end end + def self.marker + 'yes' + end end refine LibXML::XML::Node do def equals?(node2); raise 'nic' end def ==(node2) @@ -66,9 +69,12 @@ if block_given? map(&block).sum(identity) else inject(0){ |sum, element| sum.to_f + element.to_f } || identity end + end + def self.marker + 'yes2' end end class LibXML::XML::Node def ==(node2) \ No newline at end of file