Class: Appsignal::Transaction::NilTransaction
- Defined in:
- lib/appsignal/transaction.rb
Overview
Stub that is returned by current if there is no current transaction, so that it's still safe to call methods on it if there is no current transaction.
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
451 452 |
# File 'lib/appsignal/transaction.rb', line 451 def method_missing(m, *args, &block) end |
Instance Method Details
#instrument(*_args) ⇒ Object
Instrument should still yield
455 456 457 |
# File 'lib/appsignal/transaction.rb', line 455 def instrument(*_args) yield end |
#nil_transaction? ⇒ Boolean
459 460 461 |
# File 'lib/appsignal/transaction.rb', line 459 def nil_transaction? true end |