Given this function...
def my_method(user, options = {})
end
All of the following are valid, but which is preferred?
my_method x, name: "John", age: 45
my_method x, { name: "John", age: 45 }
my_method(x, name: "John", age: 45)
my_method(x, { name: "John", age: 45 })
I would typically use 1 for a DSL like validates :name, presence: true (the guide already makes allowances for omitting () for DSLs) and 3 for other Ruby code.
Can the guide be updated to explicitly address this question?