This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Octokit
|
||||
# Class to extract options from Ruby arguments for
|
||||
# Repository-related methods
|
||||
class RepoArguments < Arguments
|
||||
# !@attribute [r] repo
|
||||
# @return [Repository]
|
||||
attr_reader :repo
|
||||
|
||||
def initialize(args)
|
||||
arguments = super(args)
|
||||
@repo = arguments.shift
|
||||
|
||||
arguments
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user