Exception: RBS::Test::Tester::TypeError

Inherits:
Exception
  • Object
show all
Defined in:
lib/rbs/test/tester.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(errors) ⇒ TypeError

Returns a new instance of TypeError.



106
107
108
109
110
# File 'lib/rbs/test/tester.rb', line 106

def initialize(errors)
  @errors = errors

  super "TypeError: #{errors.map {|e| Errors.to_string(e) }.join(", ")}"
end

Instance Attribute Details

#errorsObject (readonly)

Returns the value of attribute errors.



104
105
106
# File 'lib/rbs/test/tester.rb', line 104

def errors
  @errors
end