Sha256: 831fa1285de3e94655bcb4bae0833ad003fcd8142fbaff7251bd128d8bb0bc4d

Contents?: true

Size: 357 Bytes

Versions: 3

Compression:

Stored size: 357 Bytes

Contents

# 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
      @repo = arguments.shift

      arguments
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
octokit-9.2.0 lib/octokit/repo_arguments.rb
octokit-9.1.0 lib/octokit/repo_arguments.rb
octokit-9.0.0 lib/octokit/repo_arguments.rb