Class: Steep::Signature::Errors::UnexpectedTypeNameKind
- Defined in:
- lib/steep/signature/errors.rb
Instance Attribute Summary collapse
-
#expected_kind ⇒ Object
readonly
Returns the value of attribute expected_kind.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(signature:, type:, expected_kind:) ⇒ UnexpectedTypeNameKind
constructor
A new instance of UnexpectedTypeNameKind.
- #puts(io) ⇒ Object
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_kind ⇒ Object (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 |
#type ⇒ Object (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 |