General

Profile

khalil_fazal (Khalil Fazal)

  • Login: khalil_fazal
  • Registered on: 12/30/2016
  • Last sign in: 01/23/2017

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 0 0

Activity

12/30/2016

05:52 PM Ruby Bug #8289: [].join.encoding # => US-ASCII (I expect also UTF-8
A work around for my own projects:
~~~ ruby
class Array
alias_method :old_join, :join
# A work around for https://bugs.ruby-lang.org/issues/8289
def join(separator = $,)
'' + old_join(separator)
end
end
puts ["...
khalil_fazal (Khalil Fazal)

Also available in: Atom