module SourceRoute
Constants
- TRACE_FILTER
- TRACE_FILTER_METHODS
- VERSION
Public Instance Methods
disable()
click to toggle source
# File lib/source_route.rb, line 46 def disable if proxy.tp.nil? puts 'Error: You try to call disable on nil object, do you define SourceRoute ?' else proxy.tp.disable end end
enable(match = nil, &block)
click to toggle source
# File lib/source_route.rb, line 54 def enable(match = nil, &block) proxy.reset proxy.config = BlockConfigParser.new.run(match, &block) proxy.trace end
output_html()
click to toggle source
# File lib/source_route.rb, line 71 def output_html SourceRoute.disable SourceRoute::Formats::Html.slim_render(proxy) end
proxy()
click to toggle source
# File lib/source_route.rb, line 38 def proxy @@proxy ||= Proxy.instance end
reset()
click to toggle source
# File lib/source_route.rb, line 42 def reset proxy.reset end
trace(opt) { || ... }
click to toggle source
# File lib/source_route.rb, line 62 def trace(opt, &block) proxy.reset proxy.config = ParamsConfigParser.run(opt) proxy.trace yield proxy.tp.disable SourceRoute.output_html if proxy.config.output_format == :html end