Class: TweetStream::Arguments

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

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (Arguments) initialize(args)



5
6
7
8
# File 'lib/tweetstream/arguments.rb', line 5

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

Instance Attribute Details

- (Object) options (readonly)

Returns the value of attribute options



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

def options
  @options
end