Class: Steep::Errors::IncompatibleBlockParameters
- Defined in:
- lib/steep/errors.rb
Instance Attribute Summary collapse
-
#method_type ⇒ Object
readonly
Returns the value of attribute method_type.
-
#node ⇒ Object
readonly
Returns the value of attribute node.
Instance Method Summary collapse
-
#initialize(node:, method_type:) ⇒ IncompatibleBlockParameters
constructor
A new instance of IncompatibleBlockParameters.
- #to_s ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(node:, method_type:) ⇒ IncompatibleBlockParameters
Returns a new instance of IncompatibleBlockParameters.
99 100 101 102 |
# File 'lib/steep/errors.rb', line 99 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.
97 98 99 |
# File 'lib/steep/errors.rb', line 97 def method_type @method_type end |
#node ⇒ Object (readonly)
Returns the value of attribute node.
96 97 98 |
# File 'lib/steep/errors.rb', line 96 def node @node end |
Instance Method Details
#to_s ⇒ Object
104 105 106 |
# File 'lib/steep/errors.rb', line 104 def to_s "#{location_to_str}: IncompatibleBlockParameters: method_type=#{method_type}" end |