This is a function call.
The function is defined in the module (ActiveRecord :: Validations). Modules in Ruby are objects and can have functions and variables attached to them.
You can turn on the module and get it. Here it is done in your parent class: ActiveRecord :: Base. If you look at this definition, it starts with something like:
module ActiveRecord
class Base
include ActiveRecord::Naming
include ActiveRecord::Validations
end
end
, ++ Ruby . -, Ruby . , . . : Ruby .
-, . ++ . . Ruby , . , . , . .
Ruby Metaprogramming: .