We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
container = EasyBoxPacker.find_smallest_container( items: [ { dimensions: [57.0, 47.0, 73.0], weight: 0 }, { dimensions: [15.3, 15.3, 15.3], weight: 0 }, ] )
This code produces error:
from /gems/easy-box-packer-0.0.8/easy-box-packer.rb:100:in `find_smallest_container' /home/david/gems/gems/easy-box-packer-0.0.8/easy-box-packer.rb:445:in `check_container_is_bigger_than_greedy_box': undefined method `>=' for [57.0, 62.3, 73.0]:Array (NoMethodError)
The text was updated successfully, but these errors were encountered:
@daviddzxy For the smallest container, remove the weight element as it will give you an error. That fixed it
Sorry, something went wrong.
No branches or pull requests
This code produces error:
The text was updated successfully, but these errors were encountered: