⚲
Project
General
Profile
Sign in
Register
Home
Projects
Help
Search
:
Ruby master
All Projects
Ruby
»
Ruby master
Overview
Activity
Roadmap
Issues
Repository
Like
Download (886 Bytes)
Bug #15524
» unicode_char_in_class_name.rb
martin_vahi (Martin Vahi)
, 01/11/2019 08:35 AM
#!/usr/bin/env ruby
# translation from Estonian: "class Surprising_circumstance"
class
Ü
llatav_asjaolu
def
initialize
puts
"Hello World!"
end
# initialize
end
# class Üllatav_asjaolu
Ü
llatav_asjaolu
.
new
#The console output is:
=begin
-------------citation--start----------------------
ts2@linux-f26r:~/tmp/demooo$ ruby ./unicode_char_in_class_name.rb
./unicode_char_in_class_name.rb:3: class/module name must be CONSTANT
class Üllatav_asjaolu
^
ts2@linux-f26r:~/tmp/demooo$ date
Fri Jan 11 10:20:32 EET 2019
ts2@linux-f26r:~/tmp/demooo$ ruby -v
ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux]
ts2@linux-f26r:~/tmp/demooo$ uname -a
Linux linux-f26r 4.4.126-48-default #1 SMP Sat Apr 7 05:22:50 UTC 2018 (f24992c) x86_64 x86_64 x86_64 GNU/Linux
ts2@linux-f26r:~/tmp/demooo$
-------------citation--end------------------------
=end
(1-1/1)
Loading...