Class: Appsignal::Transaction::NilTransaction
- Defined in:
- lib/appsignal/transaction.rb
Overview
Stub that is returned by ‘Transaction.current` if there is no current transaction, so that it’s still safe to call methods on it if there is none.
Instance Method Summary collapse
-
#instrument(*args) ⇒ Object
Instrument should still yield.
- #method_missing(m, *args, &block) ⇒ Object
- #nil_transaction? ⇒ Boolean
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(m, *args, &block) ⇒ Object
384 385 |
# File 'lib/appsignal/transaction.rb', line 384 def method_missing(m, *args, &block) end |
Instance Method Details
#instrument(*args) ⇒ Object
Instrument should still yield
388 389 390 |
# File 'lib/appsignal/transaction.rb', line 388 def instrument(*args) yield end |
#nil_transaction? ⇒ Boolean
392 393 394 |
# File 'lib/appsignal/transaction.rb', line 392 def nil_transaction? true end |