123456789_123456789_123456789_123456789_123456789_

Class: Octokit::Arguments Private

Do not use. This class is for internal use only.
Relationships & Source Files
Extension / Inclusion / Inheritance Descendants
Subclasses:
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, Array
Instance Chain:
self, Array
Inherits: Array
  • Object
Defined in: lib/octokit/arguments.rb

Overview

Extracts options from method arguments

Class Method Summary

Instance Attribute Summary

Constructor Details

.new(args) ⇒ Arguments

[ GitHub ]

  
# File 'lib/octokit/arguments.rb', line 9

def initialize(args)
  @options = args.last.is_a?(::Hash) ? args.pop : {}
  super
end

Instance Attribute Details

#options (readonly)

[ GitHub ]

  
# File 'lib/octokit/arguments.rb', line 7

attr_reader :options