Class: Steep::Signature::Errors::InvalidTypeApplication

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_name:, type_args:) ⇒ InvalidTypeApplication

Returns a new instance of InvalidTypeApplication.



57
58
59
60
61
# File 'lib/steep/signature/errors.rb', line 57

def initialize(signature:, type_name:, type_args:)
  super(signature: signature)
  @type_name = type_name
  @type_args = type_args
end

Instance Attribute Details

#type_argsObject (readonly)

Returns the value of attribute type_args.



55
56
57
# File 'lib/steep/signature/errors.rb', line 55

def type_args
  @type_args
end

#type_nameObject (readonly)

Returns the value of attribute type_name.



54
55
56
# File 'lib/steep/signature/errors.rb', line 54

def type_name
  @type_name
end

Instance Method Details

#puts(io) ⇒ Object



63
64
65
# File 'lib/steep/signature/errors.rb', line 63

def puts(io)
  io.puts "InvalidTypeApplication: signature=#{signature.name}, type_name=#{type_name}, type_args=#{type_args}"
end