Class: Steep::Errors::ElseOnExhaustiveCase
- Defined in:
- lib/steep/errors.rb
Instance Attribute Summary collapse
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(node:, type:) ⇒ ElseOnExhaustiveCase
constructor
A new instance of ElseOnExhaustiveCase.
- #to_s ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(node:, type:) ⇒ ElseOnExhaustiveCase
Returns a new instance of ElseOnExhaustiveCase.
474 475 476 477 |
# File 'lib/steep/errors.rb', line 474 def initialize(node:, type:) super(node: node) @type = type end |
Instance Attribute Details
#type ⇒ Object (readonly)
Returns the value of attribute type.
472 473 474 |
# File 'lib/steep/errors.rb', line 472 def type @type end |
Instance Method Details
#to_s ⇒ Object
479 480 481 |
# File 'lib/steep/errors.rb', line 479 def to_s "#{location_to_str}: ElseOnExhaustiveCase: type=#{type}" end |