Files
ubicloud/model.rb
Jeremy Evans 99dd693927 Refactor semaphore method
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.
2024-11-12 14:08:42 -08:00

4.5 KiB