Exception: Steep::Subtyping::Check::CannotResolveError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/steep/subtyping/check.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type:) ⇒ CannotResolveError

Returns a new instance of CannotResolveError.



600
601
602
603
# File 'lib/steep/subtyping/check.rb', line 600

def initialize(type:)
  @type = type
  super "Type #{type} cannot resolve to interface"
end

Instance Attribute Details

#typeObject (readonly)

Returns the value of attribute type.



598
599
600
# File 'lib/steep/subtyping/check.rb', line 598

def type
  @type
end