Open bil-bas opened 11 years ago
A better solution is provided in this workaround for Shoes:
https://github.com/shoes/shoes/issues/163#issuecomment-3594354
class Encoding %w[ASCII_8BIT US_ASCII UTF_16BE UTF_16LE UTF_32BE UTF_32LE].each do |ec| eval "#{ec} = '#{ec.sub '_', '-'}'" end unless RUBY_PLATFORM =~ /linux/ end
Though might as well use #const_set rather than #eval
#const_set
#eval
A better solution is provided in this workaround for Shoes:
https://github.com/shoes/shoes/issues/163#issuecomment-3594354
Though might as well use
#const_set
rather than#eval