Class: Steep::Errors::RequiredBlockMissing
- Defined in:
- lib/steep/errors.rb
Instance Attribute Summary collapse
-
#method_type ⇒ Object
readonly
Returns the value of attribute method_type.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(node:, method_type:) ⇒ RequiredBlockMissing
constructor
A new instance of RequiredBlockMissing.
- #to_s ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(node:, method_type:) ⇒ RequiredBlockMissing
Returns a new instance of RequiredBlockMissing.
174 175 176 177 |
# File 'lib/steep/errors.rb', line 174 def initialize(node:, method_type:) super(node: node) @method_type = method_type end |
Instance Attribute Details
#method_type ⇒ Object (readonly)
Returns the value of attribute method_type.
172 173 174 |
# File 'lib/steep/errors.rb', line 172 def method_type @method_type end |
Instance Method Details
#to_s ⇒ Object
179 180 181 |
# File 'lib/steep/errors.rb', line 179 def to_s "#{location_to_str}: RequiredBlockMissing: method_type=#{method_type.location&.source}" end |