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