Skip to content

Commit b87e874

Browse files
committed
Remove with method.
1 parent aa481d8 commit b87e874

2 files changed

Lines changed: 0 additions & 41 deletions

File tree

lib/github_api/api.rb

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -255,20 +255,6 @@ def arguments(args=(not_set = true), options={}, &block)
255255
end
256256
end
257257

258-
# Scope for passing request required arguments.
259-
#
260-
def with(args)
261-
case args
262-
when Hash
263-
set args
264-
when /.*\/.*/i
265-
user, repo = args.split('/')
266-
set :user => user, :repo => repo
267-
else
268-
::Kernel.raise ArgumentError, 'This api does not support passed in arguments'
269-
end
270-
end
271-
272258
# Set a configuration option for a given namespace
273259
#
274260
# @param [String] option

spec/github/api/with_spec.rb

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)