1

Possible Duplicates:
Double colons rails
What does :: do?

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

match 'rocketeer.js' => ::TestRoutingMapper::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.

Community
  • 1
  • 1
picardo
  • 24,530
  • 33
  • 104
  • 151

1 Answers1

1

See my answer to What does :: do?

Community
  • 1
  • 1
Gareth
  • 133,157
  • 36
  • 148
  • 157