Class: Steep::Signature::Errors::UnexpectedTypeNameKind

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

Instance Attribute Summary collapse

Attributes inherited from Base

#signature

Instance Method Summary collapse

Constructor Details

#initialize(signature:, type:, expected_kind:) ⇒ UnexpectedTypeNameKind

Returns a new instance of UnexpectedTypeNameKind.



86
87
88
89
90
# File 'lib/steep/signature/errors.rb', line 86

def initialize(signature:, type:, expected_kind:)
  super(signature: signature)
  @type = type
  @expected_kind = expected_kind
end

Instance Attribute Details

#expected_kindObject (readonly)

Returns the value of attribute expected_kind.



84
85
86
# File 'lib/steep/signature/errors.rb', line 84

def expected_kind
  @expected_kind
end

#typeObject (readonly)

Returns the value of attribute type.



83
84
85
# File 'lib/steep/signature/errors.rb', line 83

def type
  @type
end

Instance Method Details

#puts(io) ⇒ Object



93
94
95
# File 'lib/steep/signature/errors.rb', line 93

def puts(io)
  io.puts "UnexpectedTypeNameKind: signature=#{signature.name}, type=#{type}, kind=#{expected_kind}"
end