Method: Github::API::Config#call

Defined in:
lib/github_api/api/config.rb

#call(&block) ⇒ self

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.

Provide access to properties

Examples:

config.call do |config|
  config.adapter = :net_http
end

Returns:

  • (self)


99
100
101
102
# File 'lib/github_api/api/config.rb', line 99

def call(&block)
  block.call(self) if block_given?
  self
end