Module: Gems
- Extended by:
- Configuration
- Defined in:
- lib/gems.rb,
lib/gems/client.rb,
lib/gems/errors.rb,
lib/gems/request.rb,
lib/gems/version.rb,
lib/gems/configuration.rb
Defined Under Namespace
Modules: Configuration, Request Classes: Client, GemError, NotFound, Version
Constant Summary collapse
Constants included from Configuration
Configuration::DEFAULT_HOST, Configuration::DEFAULT_KEY, Configuration::DEFAULT_USER_AGENT, Configuration::VALID_OPTIONS_KEYS
Class Method Summary collapse
-
.method_missing(method, *args, &block) ⇒ Object
Delegate to Gems::Client.
-
.new(options = {}) ⇒ Gems::Client
Alias for Gems::Client.new.
- .respond_to?(method_name, include_private = false) ⇒ Boolean
- .respond_to_missing?(method_name, include_private = false) ⇒ Boolean
Methods included from Configuration
configure, extended, options, reset
Class Method Details
.method_missing(method, *args, &block) ⇒ Object
Delegate to Gems::Client
15 16 17 18 |
# File 'lib/gems.rb', line 15 def method_missing(method, *args, &block) return super unless new.respond_to?(method) new.send(method, *args, &block) end |
.new(options = {}) ⇒ Gems::Client
Alias for Gems::Client.new
10 11 12 |
# File 'lib/gems.rb', line 10 def new( = {}) Gems::Client.new() end |
.respond_to?(method_name, include_private = false) ⇒ Boolean
20 21 22 |
# File 'lib/gems.rb', line 20 def respond_to?(method_name, include_private = false) new.respond_to?(method_name, include_private) || super(method_name, include_private) end |
.respond_to_missing?(method_name, include_private = false) ⇒ Boolean
24 25 26 |
# File 'lib/gems.rb', line 24 def respond_to_missing?(method_name, include_private = false) new.respond_to?(method_name, include_private) || super(method_name, include_private) end |