Module: Turbine::Pipeline::Trace::Untraceable

Included in:
Turbine::Pipeline::Traverse
Defined in:
lib/turbine/pipeline/trace.rb

Overview

When included into a segment, raises an error if the user tries to enable tracing.

Instance Method Summary collapse

Instance Method Details

#tracing=(use_tracing) ⇒ Object

Public: Enable or disable tracing on the segment. Raises a NotTraceableError when called with a truthy value.

Returns the tracing setting.

Raises:



48
49
50
51
# File 'lib/turbine/pipeline/trace.rb', line 48

def tracing=(use_tracing)
  raise NotTraceableError.new(self) if use_tracing
  super
end