Class: Steep::Errors::UnexpectedSplat

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:) ⇒ UnexpectedSplat

Returns a new instance of UnexpectedSplat.



469
470
471
472
# File 'lib/steep/errors.rb', line 469

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

Instance Attribute Details

#typeObject (readonly)

Returns the value of attribute type.



467
468
469
# File 'lib/steep/errors.rb', line 467

def type
  @type
end

Instance Method Details

#to_sObject



474
475
476
# File 'lib/steep/errors.rb', line 474

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