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.



57
58
59
60
61
# File 'lib/rbs/test/tester.rb', line 57

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.



55
56
57
# File 'lib/rbs/test/tester.rb', line 55

def errors
  @errors
end