This method is always passed symbol arguments, so the names.map!(&:intern) call is unnecessary. Speed up the generated *_set? methods to avoid a method call and string allocation per loop iteration. This uses Symbol#name instead of Symbol#to_s, as the resulting string will not be mutated.
4.5 KiB
4.5 KiB