Sha256: f9cd9c33724a51016ae87dd8c796b55348dce38e8da2d7e675fc417990b7e1fb

Contents?: true

Size: 275 Bytes

Versions: 12

Compression:

Stored size: 275 Bytes

Contents

module Twitter
  class Arguments < Array
    attr_reader :options

    # Initializes a new Arguments object
    #
    # @return [Twitter::Arguments]
    def initialize(args)
      @options = args.last.is_a?(::Hash) ? args.pop : {}
      super(args.flatten)
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
twitter-5.11.0 lib/twitter/arguments.rb
twitter-5.10.0 lib/twitter/arguments.rb
twitter-5.9.0 lib/twitter/arguments.rb
twitter-5.8.0 lib/twitter/arguments.rb
twitter-5.7.1 lib/twitter/arguments.rb
twitter-5.7.0 lib/twitter/arguments.rb
twitter-5.6.0 lib/twitter/arguments.rb
twitter-5.5.1 lib/twitter/arguments.rb
twitter-5.5.0 lib/twitter/arguments.rb
twitter-5.4.1 lib/twitter/arguments.rb
twitter-5.4.0 lib/twitter/arguments.rb
twitter-5.3.1 lib/twitter/arguments.rb