We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
headius
Learn more about funding links in repositories.
Report abuse
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jruby 9.0.5.0 (2.2.3) 2016-01-26 7bee00d Java HotSpot(TM) 64-Bit Server VM 24.79-b02 on 1.7.0_79-b15 +jit [Windows 7-amd64]
def 牛逼 puts '111' end
牛逼 # It's OK
@name = "中文" send :define_method,:"#{@name}" do puts "中文test" end
中文 # Error occur but it run well in cruby
NameError: undefined local variable or method `??' for main:Object
The text was updated successfully, but these errors were encountered:
This symbol issue with define_method was fixed a couple of weeks ago. Works on master. 9.1.0.0 will work for you.
Sorry, something went wrong.
No branches or pull requests
Environment
jruby 9.0.5.0 (2.2.3) 2016-01-26 7bee00d Java HotSpot(TM) 64-Bit Server VM 24.79-b02 on 1.7.0_79-b15 +jit [Windows 7-amd64]
Expected Behavior
def 牛逼
puts '111'
end
牛逼 # It's OK
@name = "中文"
send :define_method,:"#{@name}" do
puts "中文test"
end
中文 # Error occur but it run well in cruby
Actual Behavior
NameError: undefined local variable or method `??' for main:Object
The text was updated successfully, but these errors were encountered: