Class: Steep::Signature::Errors::IncompatibleOverride

Inherits:
Base
  • Object
show all
Defined in:
lib/steep/signature/errors.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#signature

Instance Method Summary collapse

Constructor Details

#initialize(signature:, method_name:, this_method:, super_method:) ⇒ IncompatibleOverride

Returns a new instance of IncompatibleOverride.



41
42
43
44
45
46
# File 'lib/steep/signature/errors.rb', line 41

def initialize(signature:, method_name:, this_method:, super_method:)
  super(signature: signature)
  @method_name = method_name
  @this_method = this_method
  @super_method = super_method
end

Instance Attribute Details

#method_nameObject (readonly)

Returns the value of attribute method_name.



35
36
37
# File 'lib/steep/signature/errors.rb', line 35

def method_name
  @method_name
end

#super_methodObject (readonly)

Returns the value of attribute super_method.



39
40
41
# File 'lib/steep/signature/errors.rb', line 39

def super_method
  @super_method
end

#this_methodObject (readonly)

Returns the value of attribute this_method.



37
38
39
# File 'lib/steep/signature/errors.rb', line 37

def this_method
  @this_method
end

Instance Method Details

#puts(io) ⇒ Object



48
49
50
# File 'lib/steep/signature/errors.rb', line 48

def puts(io)
  io.puts "IncompatibleOverride: signature=#{signature.name}, method=#{method_name}"
end