Can you keep the condition on a separate line - the line length is too long for a single line, e.g:

``` ruby
def #{method_prefix}#{method}(#{definition})        # def customer_name(*args, &block)
  if #{to}.respond_to?(:#{method})                  #   if client || client.respond_to?(:name)
    #{to}.#{method}(#{definition})                  #     client.name(*args, &block)
  end                                               #   end
end                                                 # end
```