Class: Steep::Errors::UnexpectedSuper
Instance Attribute Summary collapse
-
#method ⇒ Object
readonly
Returns the value of attribute method.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(node:, method:) ⇒ UnexpectedSuper
constructor
A new instance of UnexpectedSuper.
- #to_s ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(node:, method:) ⇒ UnexpectedSuper
Returns a new instance of UnexpectedSuper.
335 336 337 338 |
# File 'lib/steep/errors.rb', line 335 def initialize(node:, method:) super(node: node) @method = method end |
Instance Attribute Details
#method ⇒ Object (readonly)
Returns the value of attribute method.
333 334 335 |
# File 'lib/steep/errors.rb', line 333 def method @method end |
Instance Method Details
#to_s ⇒ Object
340 341 342 |
# File 'lib/steep/errors.rb', line 340 def to_s "#{location_to_str}: UnexpectedSuper: method=#{method}" end |