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.



30
31
32
33
# File 'lib/trailblazer/operation/trace.rb', line 30

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

Instance Method Details

#wtfObject



35
36
37
# File 'lib/trailblazer/operation/trace.rb', line 35

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

#wtf?Boolean

Returns:

  • (Boolean)


39
40
41
# File 'lib/trailblazer/operation/trace.rb', line 39

def wtf?
  puts wtf
end