Ruby - rubocop Method too long

The skp protocol is undocumented for the HtmlDialog class.
You should be using the sketchup object. IE …

sketchup.do_action("action");

The docs specifically say

Use the sketchup.callback_method_name to invoke the callback method from your html dialog.


And why is this in the Rubocop topic ?

2 Likes