Ruby
China
Ruby
ruby 运行时有没办法知道类、方法是在哪个文件里定义的?
Topics
招聘
Wiki
酷站
Gems
Sign Up
Sign In
Ruby
ruby 运行时有没办法知道类、方法是在哪个文件里定义的?
windwiny
·
April 10, 2013
· Last by
windwiny
replied at
April 10, 2013
· 2446 hits
如题
luikore
#0
April 10, 2013
方法可以,类不行
obj
.
method
(
:f
).
source_location
3 likes
windwiny
#1
April 10, 2013
@
luikore
Tks
You need to
Sign in
before reply, if you don't have an account, please
Sign up
first.
windwiny
@windwiny
1 likes
Total
2
replies
New Reply comming, click to load.