Sha256: 9ebdb34d863a5feb41fcf9d8b75e9a1c137164f345961e0702fc8e51886e245c
Contents?: true
Size: 266 Bytes
Versions: 3
Compression:
Stored size: 266 Bytes
Contents
# frozen_string_literal: true module Octokit # Extracts options from method arguments # @private class Arguments < Array attr_reader :options def initialize(args) @options = args.last.is_a?(::Hash) ? args.pop : {} super end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
octokit-9.2.0 | lib/octokit/arguments.rb |
octokit-9.1.0 | lib/octokit/arguments.rb |
octokit-9.0.0 | lib/octokit/arguments.rb |