In Ruby, what does this mean?
Order.__elasticsearch__.create_index! force: true
Is that a method? What's different about it when it has the underscore on both sides?
In Ruby, what does this mean?
Order.__elasticsearch__.create_index! force: true
Is that a method? What's different about it when it has the underscore on both sides?
It's just a method. There's nothing intrinsically special about it in Ruby; it's kind of a Pythonic way of indicating a method/attribute that's internal to the Order
object and shouldn't be messed with. It also reduces the chances that someone will overwrite it by accident.