I'm trying to set the 'WM_CLASS' attribute for my ruby tk application. I've tried several ways, but I think it should work like that:
TkRoot.new(class: 'Test')
But that will err with:
<internal:kernel>:18:in `class': wrong number of arguments (given 1, expected 0) (ArgumentError)
from /home/ben/.gem/ruby/3.0.0/gems/tk-0.4.0/lib/tk/root.rb:40:in `block in new'
from /home/ben/.gem/ruby/3.0.0/gems/tk-0.4.0/lib/tk/root.rb:36:in `each'
from /home/ben/.gem/ruby/3.0.0/gems/tk-0.4.0/lib/tk/root.rb:36:in `new'
from examples/form.rb:19:in `initialize'
from examples/form.rb:49:in `new'
from examples/form.rb:49:in `<main>'
How to do it correctly?