Class: Steep::Errors::ElseOnExhaustiveCase

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

Instance Attribute Summary

Attributes inherited from Base

#node

Instance Method Summary collapse

Methods inherited from Base

#location_to_str, #print_to

Constructor Details

#initialize(node:, type:) ⇒ ElseOnExhaustiveCase

Returns a new instance of ElseOnExhaustiveCase.



459
460
461
462
463
# File 'lib/steep/errors.rb', line 459

def initialize(node:, type:)
  def to_s
    "#{location_to_str}: ElseOnExhaustiveCase: type=#{type}"
  end
end

Instance Method Details

#to_sObject



460
461
462
# File 'lib/steep/errors.rb', line 460

def to_s
  "#{location_to_str}: ElseOnExhaustiveCase: type=#{type}"
end