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.



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

Returns the value of attribute method_type.



97
98
99
# File 'lib/steep/errors.rb', line 97

def method_type
  @method_type
end

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



104
105
106
# File 'lib/steep/errors.rb', line 104

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