class Aws::Templates::Exception::ParameterMethodNameConflict

A regular method and a parameter have the same name in a class

A parameter was specified with the same name as exsiting method in the class or in an ancestor of the class.

Attributes

method_object[R]

Method object of the method specified

Public Class Methods

new(target_method) click to toggle source
Calls superclass method
# File lib/aws/templates/exception/parameter_method_name_conflict.rb, line 15
def initialize(target_method)
  @method_object = target_method

  super(
    "Parameter name #{target_method.name} clashes with a method name in " \
    "#{target_method.owner.name}"
  )
end