Class: Cb::Utils::NilResponse
- Inherits:
-
Object
- Object
- Cb::Utils::NilResponse
- Defined in:
- lib/cb/utils/nil_response.rb
Instance Method Summary collapse
-
#initialize ⇒ NilResponse
constructor
A new instance of NilResponse.
-
#method_missing(m, *args, &block) ⇒ Object
We used to monkey patch Nil to respond to all methods on the api client.
- #nil? ⇒ Boolean
Constructor Details
#initialize ⇒ NilResponse
Returns a new instance of NilResponse.
17 |
# File 'lib/cb/utils/nil_response.rb', line 17 def initialize ;end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(m, *args, &block) ⇒ Object
We used to monkey patch Nil to respond to all methods on the api client
24 25 26 |
# File 'lib/cb/utils/nil_response.rb', line 24 def method_missing(m, *args, &block) return nil end |
Instance Method Details
#nil? ⇒ Boolean
19 20 21 |
# File 'lib/cb/utils/nil_response.rb', line 19 def nil? true end |