Exception: Steep::Interface::Instantiated::InvalidMethodOverrideError
- Inherits:
-
StandardError
- Object
- StandardError
- Steep::Interface::Instantiated::InvalidMethodOverrideError
- Defined in:
- lib/steep/interface/instantiated.rb
Instance Attribute Summary collapse
-
#current_method ⇒ Object
readonly
Returns the value of attribute current_method.
-
#result ⇒ Object
readonly
Returns the value of attribute result.
-
#super_method ⇒ Object
readonly
Returns the value of attribute super_method.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type:, current_method:, super_method:, result:) ⇒ InvalidMethodOverrideError
constructor
A new instance of InvalidMethodOverrideError.
Constructor Details
#initialize(type:, current_method:, super_method:, result:) ⇒ InvalidMethodOverrideError
Returns a new instance of InvalidMethodOverrideError.
36 37 38 39 40 41 42 43 |
# File 'lib/steep/interface/instantiated.rb', line 36 def initialize(type:, current_method:, super_method:, result:) @type = type @current_method = current_method @super_method = super_method @result = result super "Invalid override of `#{current_method.name}` in #{type}: definition in #{current_method.type_name} is not compatible with its super (#{super_method.type_name})" end |
Instance Attribute Details
#current_method ⇒ Object (readonly)
Returns the value of attribute current_method.
32 33 34 |
# File 'lib/steep/interface/instantiated.rb', line 32 def current_method @current_method end |
#result ⇒ Object (readonly)
Returns the value of attribute result.
34 35 36 |
# File 'lib/steep/interface/instantiated.rb', line 34 def result @result end |
#super_method ⇒ Object (readonly)
Returns the value of attribute super_method.
33 34 35 |
# File 'lib/steep/interface/instantiated.rb', line 33 def super_method @super_method end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
31 32 33 |
# File 'lib/steep/interface/instantiated.rb', line 31 def type @type end |