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
In CRuby, I can get the receiver through block argument, but in mruby, I can't. Is it mruby's limitation?
$ cat tmp.rb class Foo def initialize(&block) self.instance_eval(&block) end end Foo.new{ |arg| p arg } $ ruby tmp.rb #<Foo:0x007f97ca038798> $ ./bin/mruby tmp.rb nil
The text was updated successfully, but these errors were encountered:
aa1f668
No branches or pull requests
In CRuby, I can get the receiver through block argument, but in mruby, I can't.
Is it mruby's limitation?
The text was updated successfully, but these errors were encountered: