Class: Twitter::Arguments
- Inherits:
-
Array
- Object
- Array
- Twitter::Arguments
- Defined in:
- lib/twitter/arguments.rb
Overview
An Array subclass that extracts options from arguments
Instance Attribute Summary collapse
-
#options ⇒ Hash
readonly
The options hash extracted from the arguments.
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
22 23 24 25 |
# File 'lib/twitter/arguments.rb', line 22 def initialize(args) = args.last.is_a?(Hash) ? args.pop : {} # : Hash[Symbol, untyped] super(args.flatten) end |
Instance Attribute Details
#options ⇒ Hash (readonly)
The options hash extracted from the arguments
11 12 13 |
# File 'lib/twitter/arguments.rb', line 11 def end |