Class: Teamsupport::Arguments
- Inherits:
-
Array
- Object
- Array
- Teamsupport::Arguments
- Defined in:
- lib/teamsupport/arguments.rb
Instance Attribute Summary collapse
-
#options ⇒ Hash
readonly
Provide an options method for reading argument options.
Instance Method Summary collapse
-
#initialize(args) ⇒ Teamsupport::Arguments
constructor
private
Initializes a new Arguments object.
Constructor Details
#initialize(args) ⇒ Teamsupport::Arguments
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Initializes a new Arguments object
21 22 23 24 |
# File 'lib/teamsupport/arguments.rb', line 21 def initialize(args) @options = args.last.is_a?(::Hash) ? args.pop : {} super(args.flatten) end |
Instance Attribute Details
#options ⇒ Hash (readonly)
Provide an options method for reading argument options
12 13 14 |
# File 'lib/teamsupport/arguments.rb', line 12 def @options end |