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

TODO: deprecate!



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

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

#wtf?Boolean

TODO: deprecate!

Returns:

  • (Boolean)


47
48
49
# File 'lib/trailblazer/operation/trace.rb', line 47

def wtf?
  puts wtf
end