-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
IB::Contract defined in
https://github.com/ib-ruby/ib-extensions/blob/master/lib/ib/models/contract.rb
has Object as it's superclass (since it doesn't extend any class explicitly)
But IB::Contract defined in
https://github.com/ib-ruby/ib-api/blob/master/lib/models/ib/contract.rb
has IB::Model as its superclass.
As a result, requiring both of these files will cause a mismatched superclass exception:
/home/user/.rvm/rubies/ruby-3.0.0/lib/ruby/gems/3.0.0/gems/ib-api-972.5/lib/models/ib/contract.rb:14:in `<module:IB>': superclass mismatch for class Contract (TypeError)
from /home/user/.rvm/rubies/ruby-3.0.0/lib/ruby/gems/3.0.0/gems/ib-api-972.5/lib/models/ib/contract.rb:6:in `<top (required)>'
from <internal:/home/user/.rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:96:in `require'
from <internal:/home/user/.rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:96:in `require'
Metadata
Metadata
Assignees
Labels
No labels