Home
Sign Up
Sign In
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member
Sign In
V2EX
›
Ruby
你真的理解instance_eval, class_eval和define_method吗?
daqing
·
Apr 22, 2011
· 6811 views
This topic created in 5484 days ago, the information mentioned may be changed or developed.
https://gist.github.com/936136
请问a, b, c, d四个方法,分别是实例方法,还是类方法呢?
eval
方法
method
2 replies
•
1970-01-01 08:00:00 +08:00
1
iwinux
Apr 29, 2011
a 是 Class 的类方法
b 是 Test 的类方法
c 是 Test 的实例方法
d 是 Test 的类方法
https://gist.github.com/947384
2
lychee
Apr 29, 2011
- - 来学习下 前两天正好在纠结这几个函数
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Solana
·
1067 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 28ms ·
UTC 22:52
·
PVG 06:52
·
LAX 15:52
·
JFK 18:52
♥ Do have faith in what you're doing.
❯