Method: ActiveSupport::Messages::RotationCoordinator#rotate

Defined in:
lib/active_support/messages/rotation_coordinator.rb

#rotate(**options, &block) ⇒ Object

Raises:

  • (ArgumentError)


26
27
28
29
30
31
32
33
# File 'lib/active_support/messages/rotation_coordinator.rb', line 26

def rotate(**options, &block)
  raise ArgumentError, "Options cannot be specified when using a block" if block && !options.empty?
  changing_configuration!

  @rotate_options << (block || options)

  self
end