rename all 'method' attributes to 'method_name' in generated code to avoid conflicts with Ruby's Object#method