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
  • 23,914
  • 32
  • 101
  • 149

1 Answers1

1

See my answer to What does :: do?

Community
  • 1
  • 1
Gareth
  • 124,675
  • 36
  • 145
  • 155