class HardWorker include Sidekiq::Worker
require 'nokogiri'
require 'open-uri'
def perform(name, count) # do something end end
--
You received this message because you are subscribed to the Google Groups "Sidekiq" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sidekiq+unsubscribe@googlegroups.com.
To post to this group, send email to sid...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sidekiq/be452c88-f07c-47fb-a774-6c417c74b351%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
It's idiomatic to put them at the top of the file. There's zero benefit to placing them where you have them in your example.