Module: Que::Utils::Ruby2Keywords

Included in:
Que
Defined in:
lib/que/utils/ruby2_keywords.rb

Instance Method Summary collapse

Instance Method Details

#split_out_ruby2_keywords(args) ⇒ Object



12
13
14
15
16
# File 'lib/que/utils/ruby2_keywords.rb', line 12

def split_out_ruby2_keywords(args)
  return [args, {}] unless args.last&.is_a?(Hash) && Hash.ruby2_keywords_hash?(args.last)

  [args[0..-2], args.last]
end