Class: Steep::Signature::Errors::IncompatibleOverride
- Defined in:
- lib/steep/signature/errors.rb
Instance Attribute Summary collapse
-
#method_name ⇒ Object
readonly
Returns the value of attribute method_name.
-
#super_method ⇒ Object
readonly
Returns the value of attribute super_method.
-
#this_method ⇒ Object
readonly
Returns the value of attribute this_method.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(signature:, method_name:, this_method:, super_method:) ⇒ IncompatibleOverride
constructor
A new instance of IncompatibleOverride.
- #puts(io) ⇒ Object
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_name ⇒ Object (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_method ⇒ Object (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_method ⇒ Object (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 |