Class: Steep::Errors::ElseOnExhaustiveCase

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

Instance Attribute Summary collapse

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.



483
484
485
486
# File 'lib/steep/errors.rb', line 483

def initialize(node:, type:)
  super(node: node)
  @type = type
end

Instance Attribute Details

#typeObject (readonly)

Returns the value of attribute type.



481
482
483
# File 'lib/steep/errors.rb', line 481

def type
  @type
end

Instance Method Details

#to_sObject



488
489
490
# File 'lib/steep/errors.rb', line 488

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