Class: Uber::Arguments

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#optionsObject (readonly)

Returns the value of attribute options.



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

def options
  @options
end