我想见test和test2
configatron.providers.test.remote_dir = '/incoming/test/current'
configatron.providers.test.local_dir = 'data/test'
configatron.providers.test2.remote_dir = '/incoming/test2/current'
configatron.providers.test2.local_dir = 'data/test2'
configatron.providers.foreach do |p|
p.name() #<--- how to display test/test2
end有没有试过阅读手册?我是不是错过了什么地方?谷歌帮不上忙。
谢谢。
发布于 2012-07-13 01:19:59
我猜这就是你要找的:
configatron.providers.configatron_keys.map { |key| configatron.providers.send(key).local_dir }https://stackoverflow.com/questions/11456860
复制相似问题