Exception: RBS::Test::Hook::Error

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(errors) ⇒ Error

Returns a new instance of Error.



10
11
12
13
# File 'lib/rbs/test/hook.rb', line 10

def initialize(errors)
  @errors = errors
  super "Type error detected: [#{errors.map {|e| Errors.to_string(e) }.join(", ")}]"
end

Instance Attribute Details

#errorsObject (readonly)

Returns the value of attribute errors.



8
9
10
# File 'lib/rbs/test/hook.rb', line 8

def errors
  @errors
end