开发者

Ruby syntax question [duplicate]

开发者 https://www.devze.com 2023-02-19 18:47 出处:网络
This question already has answers here: Closed 11 years ago. Possible Duplicates: Double colons rails What does :: do?
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

精彩评论

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