Class: Steep::Signature::Errors::InvalidSelfType

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:, member:) ⇒ InvalidSelfType

Returns a new instance of InvalidSelfType.



71
72
73
74
# File 'lib/steep/signature/errors.rb', line 71

def initialize(signature:, member:)
  super(signature: signature)
  @member = member
end

Instance Attribute Details

#memberObject (readonly)

Returns the value of attribute member.



69
70
71
# File 'lib/steep/signature/errors.rb', line 69

def member
  @member
end

Instance Method Details

#puts(io) ⇒ Object



77
78
79
# File 'lib/steep/signature/errors.rb', line 77

def puts(io)
  io.puts "InvalidSelfType: signature=#{signature.name}, module=#{member.name}"
end