Created
October 17, 2012 15:04
-
-
Save lbergen/3906030 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Klass | |
class << self | |
def some_setup | |
@var = "hi" | |
end | |
end | |
end | |
Klass.some_setup | |
class MyWorker | |
include Sidekiq::Worker | |
def perform | |
puts Klass.instance_variable_get(:@var) | |
end | |
end | |
MyWorker.perform_async |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment