Doc Bug: Model.options code example

Model.options

example code has a bug. This is the current example:

# Output all options available.
options_manager = Sketchup.active_model.options
options_manager.keys.each { |options_provider|
  puts options_provider.name
  options_provider.each { |key, value|
    puts "> #{key} - #{value}"
  }
}

The 2nd line of code should not include .keys and should just be:

options_manager.each { |options_provider|
1 Like

Issues with the API docs can also be reported on Github: https://github.com/SketchUp/ruby-api-stubs

1 Like

@Aerilius , Thomas has been moving all issue reports to the main official API issue tracker …


@MaschMaker, I’ve already offifcially reported this sample code error … see:

… as well as …


:nerd_face:

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.