| Age | Commit message (Collapse) | Author |
|
For modules this check didn't exist yet. Also call #inspect.
|
|
Not needed anymore since 85075bef7583edd0a48cfbdfaa632cbdacf78f2c
|
|
It isn't needed as it's very similar to mrb_define_method_raw() and also
there's only one place where mrb_proc_ptr() actually has to be called.
Inspired by @furunkel's method cache patch (#2764).
|
|
case 1
~~~
class A; def inspect; 1; end; end
A.new.a
~~~
case 2
~~~
class A
def self.inspect
1
end
alias_method :a, :b
end
~~~
|
|
|
|
|
|
|
|
|
|
|
|
|
|
`mrb_value` to make it consistent with mrb_const_defined; ref #2593
|
|
save and restore arena index to prevent arena overflow.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mrb_define_method setting mrb->proc_class for method proc
|
|
|
|
when class nothing
|
|
|
|
|
|
Class.new do not call `class_eval'
|
|
and set self for block argument
|
|
for block argument
|
|
|
|
that not have methods each other
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|