Class: Trailblazer::Operation::Trace::Result

Inherits:
SimpleDelegator
  • Object
show all
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

Constructor Details

#initialize(result, stack) ⇒ Result

Returns a new instance of Result.



28
29
30
31
# File 'lib/trailblazer/operation/trace.rb', line 28

def initialize(result, stack)
  super(result)
  @stack = stack
end

Instance Method Details

#wtfObject



33
34
35
# File 'lib/trailblazer/operation/trace.rb', line 33

def wtf
  Trailblazer::Developer::Trace::Present.(@stack)
end

#wtf?Boolean

Returns:

  • (Boolean)


37
38
39
# File 'lib/trailblazer/operation/trace.rb', line 37

def wtf?
  puts wtf
end