Module: Webmachine::Resource::Tracing

Included in:
Webmachine::Resource
Defined in:
lib/webmachine/resource/tracing.rb

Overview

Contains Webmachine::Resource methods related to the visual debugger.

Instance Method Summary collapse

Instance Method Details

#trace?Boolean

Whether this resource should be traced. By default, tracing is disabled, but you can override it by setting the @trace instance variable in the initialize method, or by overriding this method. When enabled, traces can be visualized using the web debugging interface.

Examples:

def initialize
  @trace = true
end

Returns:

  • (Boolean)

15
16
17
# File 'lib/webmachine/resource/tracing.rb', line 15

def trace?
  !!@trace
end