Class: Twitter::Arguments

Inherits:
Array
  • Object
show all
Defined in:
lib/twitter/arguments.rb

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (Twitter::Arguments) initialize(args)

Initializes a new Arguments object



8
9
10
11
# File 'lib/twitter/arguments.rb', line 8

def initialize(args)
  @options = args.last.is_a?(::Hash) ? args.pop : {}
  super(args.flatten)
end

Instance Attribute Details

- (Object) options (readonly)

Returns the value of attribute options



3
4
5
# File 'lib/twitter/arguments.rb', line 3

def options
  @options
end