开发者

Ruby syntax question [duplicate]

This question already has answers here: Closed 11 years ago.

Possible Duplicates:

Double colons rails

What does :: do?

I was reading a manual on Rails and came across this snippet:

match 'rocketeer.js' => ::TestRoutingM开发者_开发问答apper::RocketeerApp

I'd never seen the :: syntax at the head of a class name before. I'm wondering what is the significance of writing it this way.


See my answer to What does :: do?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜