Class: Octokit::Arguments
- Inherits:
-
Array
- Object
- Array
- Octokit::Arguments
- Defined in:
- lib/octokit/arguments.rb
Overview
Extracts options from method arguments
Direct Known Subclasses
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(args) ⇒ Arguments
constructor
A new instance of Arguments.
Constructor Details
#initialize(args) ⇒ Arguments
Returns a new instance of Arguments.
9 10 11 12 |
# File 'lib/octokit/arguments.rb', line 9 def initialize(args) @options = args.last.is_a?(::Hash) ? args.pop : {} super end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
7 8 9 |
# File 'lib/octokit/arguments.rb', line 7 def @options end |