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.



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

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.



102
103
104
# File 'lib/rbs/test/tester.rb', line 102

def errors
  @errors
end