What is the format/syntax followed in the below declaration/definition of a Ruby class? I don't understand the colons (:) used in the class name. What does that indicate?
class ::Chef::Recipe
include ::Opscode::ChefClient::Helpers
end
This is from here:
I am familiar with the below way of defining a Ruby class:
class ClassName
CONSTANT = Z
....methods...
end
And i know that a constant is called like ClassName::Z
, But the above way of declaration is new to me and where do i find docs on declaring a ruby class like so.