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.



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

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

Instance Method Details

#wtfObject



41
42
43
# File 'lib/trailblazer/operation/trace.rb', line 41

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

#wtf?Boolean

Returns:

  • (Boolean)


45
46
47
# File 'lib/trailblazer/operation/trace.rb', line 45

def wtf?
  puts wtf
end