Class: Steep::Errors::MethodDefinitionWithOverloading
- Defined in:
- lib/steep/errors.rb
Instance Attribute Summary collapse
-
#method ⇒ Object
readonly
Returns the value of attribute method.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(node:, method:) ⇒ MethodDefinitionWithOverloading
constructor
A new instance of MethodDefinitionWithOverloading.
- #to_s ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(node:, method:) ⇒ MethodDefinitionWithOverloading
Returns a new instance of MethodDefinitionWithOverloading.
271 272 273 274 |
# File 'lib/steep/errors.rb', line 271 def initialize(node:, method:) super(node: node) @method = method end |
Instance Attribute Details
#method ⇒ Object (readonly)
Returns the value of attribute method.
269 270 271 |
# File 'lib/steep/errors.rb', line 269 def method @method end |
Instance Method Details
#to_s ⇒ Object
276 277 278 |
# File 'lib/steep/errors.rb', line 276 def to_s "#{location_to_str}: MethodDefinitionWithOverloading: method=#{method.name}, types=#{method.types.join(" | ")}" end |