This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Octokit
|
||||
# Extracts options from method arguments
|
||||
# @private
|
||||
class Arguments < Array
|
||||
attr_reader :options
|
||||
|
||||
def initialize(args)
|
||||
@options = args.last.is_a?(::Hash) ? args.pop : {}
|
||||
super(args)
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user