Class: Twitter::Arguments
- Inherits:
-
Array
- Object
- Array
- Twitter::Arguments
- Defined in:
- lib/twitter/arguments.rb
Instance Attribute Summary collapse
- #options ⇒ Hash readonly
Instance Method Summary collapse
-
#initialize(args) ⇒ Twitter::Arguments
constructor
Initializes a new Arguments object.
Constructor Details
#initialize(args) ⇒ Twitter::Arguments
Initializes a new Arguments object
9 10 11 12 |
# File 'lib/twitter/arguments.rb', line 9 def initialize(args) @options = args.last.is_a?(::Hash) ? args.pop : {} super(args.flatten) end |
Instance Attribute Details
#options ⇒ Hash (readonly)
4 5 6 |
# File 'lib/twitter/arguments.rb', line 4 def @options end |