14 lines
275 B
Ruby
14 lines
275 B
Ruby
|
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
|