twitter-status-bot/.gems/gems/twitter-5.11.0/lib/twitter/arguments.rb

14 lines
275 B
Ruby
Raw Normal View History

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