lib/review/extentions/string.rb in review-1.2.0 vs lib/review/extentions/string.rb in review-1.3.0

- old
+ new

@@ -3,31 +3,31 @@ end unless String.method_defined?(:lines) # Ruby 1.8 class String - alias lines to_a + alias_method :lines, :to_a end end if String.method_defined?(:bytesize) # Ruby 1.9 class String - alias charsize size + alias_method :charsize, :size end else # Ruby 1.8 class String - alias bytesize size + alias_method :bytesize, :size def charsize split(//).size end end end unless String.method_defined?(:each) # Ruby 1.9 class String - alias each each_line + alias_method :each, :each_line end end