Class: Steep::Errors::UnexpectedSplat
Instance Attribute Summary collapse
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(node:, type:) ⇒ UnexpectedSplat
constructor
A new instance of UnexpectedSplat.
- #to_s ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(node:, type:) ⇒ UnexpectedSplat
Returns a new instance of UnexpectedSplat.
482 483 484 485 |
# File 'lib/steep/errors.rb', line 482 def initialize(node:, type:) super(node: node) @type = type end |
Instance Attribute Details
#type ⇒ Object (readonly)
Returns the value of attribute type.
480 481 482 |
# File 'lib/steep/errors.rb', line 480 def type @type end |
Instance Method Details
#to_s ⇒ Object
487 488 489 |
# File 'lib/steep/errors.rb', line 487 def to_s "#{location_to_str}: UnexpectedSplat: type=#{type}" end |