Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions template/unicode_norm_gen.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -22,23 +22,6 @@ class Integer
end
end

module Enumerable
unless method_defined?(:each_slice)
def each_slice(n)
ary = []
each do |i|
ary << i
if ary.size >= n
yield ary
ary = []
end
end
yield ary unless ary.empty?
self
end
end
end

class Array
def to_UTF8() collect {|c| c.to_UTF8}.join('') end

Expand Down