Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/sidekiq_unique_jobs/core_ext.rb
Overview
Monkey patches for the ruby Array
Instance Method Summary collapse
-
#extract_options! ⇒ Hash
Extract the last argument if it is a hash.
Instance Method Details
#extract_options! ⇒ Hash
Extract the last argument if it is a hash
124 125 126 127 128 129 130 |
# File 'lib/sidekiq_unique_jobs/core_ext.rb', line 124 def if last.is_a?(Hash) && last.instance_of?(Hash) pop else {} end end |