Class: Trailblazer::Operation::Trace::Result
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- Trailblazer::Operation::Trace::Result
- Defined in:
- lib/trailblazer/operation/trace.rb
Overview
Presentation of the traced stack via the returned result object. This object is wrapped around the original result in call.
Instance Method Summary collapse
-
#initialize(result, stack) ⇒ Result
constructor
A new instance of Result.
-
#wtf ⇒ Object
TODO: deprecate!.
-
#wtf? ⇒ Boolean
TODO: deprecate!.
Constructor Details
#initialize(result, stack) ⇒ Result
Returns a new instance of Result.
36 37 38 39 |
# File 'lib/trailblazer/operation/trace.rb', line 36 def initialize(result, stack) super(result) @stack = stack end |
Instance Method Details
#wtf ⇒ Object
TODO: deprecate!
42 43 44 |
# File 'lib/trailblazer/operation/trace.rb', line 42 def wtf Developer::Trace::Present.(@stack) end |
#wtf? ⇒ Boolean
TODO: deprecate!
47 48 49 |
# File 'lib/trailblazer/operation/trace.rb', line 47 def wtf? puts wtf end |