Almost all operators in Ruby are actually instance methods called on the object that precedes them.
For << there are many different uses, depending on the type of object you are calling it on. For example, in an array, this works to push the given value to the end of the array.
This seems to apply to the Rails model object, so in this case I would say that this is a helper method called when adding a model object to model a collection of objects. For example, in this case you can add a rating to the product.
If you indicated the definition of the whole method and showed which class it is in, I could give a more specific answer.
source share