Class: Steep::Errors::IncompatibleBlockParameters

Inherits:
Base
  • Object
show all
Defined in:
lib/steep/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#location_to_str, #print_to

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_typeObject (readonly)

Returns the value of attribute method_type.



106
107
108
# File 'lib/steep/errors.rb', line 106

def method_type
  @method_type
end

#nodeObject (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_sObject



113
114
115
# File 'lib/steep/errors.rb', line 113

def to_s
  "#{location_to_str}: IncompatibleBlockParameters: method_type=#{method_type}"
end