Sha256: d79aeffd85a73cc62c19e3ca9f1f8d3d2a5ae6174ad88122f89e85314b96d84d

Contents?: true

Size: 363 Bytes

Versions: 21

Compression:

Stored size: 363 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(args)
      @repo = arguments.shift

      arguments
    end
  end
end

Version data entries

21 entries across 21 versions & 2 rubygems

Version Path
octokit-8.1.0 lib/octokit/repo_arguments.rb
octokit-8.0.0 lib/octokit/repo_arguments.rb
octokit-7.2.0 lib/octokit/repo_arguments.rb
octokit-7.1.0 lib/octokit/repo_arguments.rb
octokit-7.0.0 lib/octokit/repo_arguments.rb
octokit-6.1.1 lib/octokit/repo_arguments.rb
octokit-6.1.0 lib/octokit/repo_arguments.rb
tdiary-5.2.4 vendor/bundle/ruby/3.1.0/gems/octokit-4.25.1/lib/octokit/repo_arguments.rb
octokit-6.0.1 lib/octokit/repo_arguments.rb
octokit-6.0.0 lib/octokit/repo_arguments.rb
octokit-5.6.1 lib/octokit/repo_arguments.rb
octokit-5.6.0 lib/octokit/repo_arguments.rb
octokit-5.5.0 lib/octokit/repo_arguments.rb
octokit-5.4.0 lib/octokit/repo_arguments.rb
tdiary-5.2.3 vendor/bundle/ruby/3.1.0/gems/octokit-5.3.0/lib/octokit/repo_arguments.rb
octokit-5.3.0 lib/octokit/repo_arguments.rb
octokit-5.2.0 lib/octokit/repo_arguments.rb
octokit-5.1.0 lib/octokit/repo_arguments.rb
octokit-5.0.0 lib/octokit/repo_arguments.rb
octokit-4.25.1 lib/octokit/repo_arguments.rb