class RuboCop::Cop::SketchupDeprecations::SketchupSet

From SketchUp 6 until SketchUp 2013 the SketchUp API shipped with a `Set` class. When SketchUp started shipping with the Ruby StdLib in SketchUp 2014 the class was changed from `Set` to `Sketchup::Set` in order to avoid conflict with the Ruby Standard Library.

The `Sketchup::Set` class is much slower than Ruby's own `Set` class and less versatile.

Constants

MSG

Public Instance Methods

on_const(node) click to toggle source
# File lib/rubocop/sketchup/cop/deprecations/sketchup_set.rb, line 21
def on_const(node)
  return unless sketchup_set?(node)

  add_offense(node, location: :expression)
end