Module: WrAPI::RespondTo
- Included in:
- WrAPI
- Defined in:
- lib/wrapi/respond_to.rb
Class Method Summary collapse
-
.method_missing(method, *args, &block) ⇒ Object
Delegate to Client.
-
.respond_to?(method, include_all = false) ⇒ Boolean
Delegate to Client.
Class Method Details
.method_missing(method, *args, &block) ⇒ Object
Delegate to Client
6 7 8 9 |
# File 'lib/wrapi/respond_to.rb', line 6 def self.method_missing(method, *args, &block) return super unless client.respond_to?(method) client.send(method, *args, &block) end |
.respond_to?(method, include_all = false) ⇒ Boolean
Delegate to Client
12 13 14 |
# File 'lib/wrapi/respond_to.rb', line 12 def self.respond_to?(method, include_all = false) client.respond_to?(method, include_all) || super end |