Module: Sidekiq::Repeat::MiniIceCube::IceCubeDslErrorHandling

Included in:
CronSyntax, MainDsl
Defined in:
lib/sidekiq/repeat/mini_ice_cube.rb

Constant Summary collapse

IceCubeSyntaxError =
Class.new(StandardError)

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(meth, *args, &block) ⇒ Object



16
17
18
# File 'lib/sidekiq/repeat/mini_ice_cube.rb', line 16

def method_missing(meth, *args, &block)
  unsupported("method not found: #{meth}")
end

Instance Method Details

#unsupported(msg) ⇒ Object



12
13
14
# File 'lib/sidekiq/repeat/mini_ice_cube.rb', line 12

def unsupported(msg)
  fail IceCubeSyntaxError, "Sidekiq::Repeat: Unsupported ice_cube syntax. Please refer to the documentation. (#{msg})"
end