This commit is contained in:
1 parent
c8ac4fcae5
commit
4cee170d66
17576 files changed
+895740
-2
No files matched your search
@@ -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