Method: QueueIt#setup
- Defined in:
- lib/queue_it.rb
#setup {|_self| ... } ⇒ Object
You can add, in this module, your own configuration options as in the example below…
attr_writer :my_option
def my_option
return "Default Value" unless @my_option
@my_option
end
Then, you can customize the default behaviour (typically in a Rails initializer) like this:
QueueIt.setup do |config|
config.root_url = "Another value"
end
21 22 23 24 |
# File 'lib/queue_it.rb', line 21 def setup yield self require "queue_it" end |