Module: Github::ClassMethods

Included in:
Github, API
Defined in:
lib/github_api.rb

Instance Method Summary collapse

Instance Method Details

#configurationConfiguration Also known as: config

The client configuration


87
88
89
# File 'lib/github_api.rb', line 87

def configuration
  @configuration ||= Configuration.new
end

#configure {|configuration| ... } ⇒ nil

Configure options

Examples:

Github.configure do |c|
  c.some_option = true
end

Yields:

  • the configuration block

Yield Parameters:


106
107
108
# File 'lib/github_api.rb', line 106

def configure
  yield configuration
end

#require_all(prefix, *libs) ⇒ self

Requires internal libraries


76
77
78
79
80
# File 'lib/github_api.rb', line 76

def require_all(prefix, *libs)
  libs.each do |lib|
    require "#{File.join(prefix, lib)}"
  end
end