Skip to content

Instantly share code, notes, and snippets.

@sixtyfive
Created August 20, 2021 10:00
Show Gist options
  • Save sixtyfive/2ed46c7f3e3730532bb9491eb177de7b to your computer and use it in GitHub Desktop.
Save sixtyfive/2ed46c7f3e3730532bb9491eb177de7b to your computer and use it in GitHub Desktop.
module CoreExtensions
module Array
def each_utf8_encode
self.map{|e| e.to_s.encode('utf-8')}
end
end
end
module MyModule
class MyClass
Array.include CoreExtensions::Array
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment