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.
108 109 110 111 |
# File 'lib/steep/errors.rb', line 108 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.
106 107 108 |
# File 'lib/steep/errors.rb', line 106 def method_type @method_type end |
#node ⇒ Object (readonly)
Returns the value of attribute node.
105 106 107 |
# File 'lib/steep/errors.rb', line 105 def node @node end |
Instance Method Details
#to_s ⇒ Object
113 114 115 |
# File 'lib/steep/errors.rb', line 113 def to_s "#{location_to_str}: IncompatibleBlockParameters: method_type=#{method_type}" end |