Sha256: fc026ae6ac012a642bd1757ad25371d4740dceae6a0a899d52c19a33442846cd

Contents?: true

Size: 466 Bytes

Versions: 2

Compression:

Stored size: 466 Bytes

Contents

# frozen_string_literal: true

require_relative 'trace_location/version'
require_relative 'trace_location/config'
require_relative 'trace_location/tracer'

begin
  require 'rails'
  require_relative 'trace_location/railtie'
rescue LoadError
  nil
end

module TraceLocation # :nodoc:
  def self.trace(options = {}, &block)
    Tracer.new(options).call(&block)
  end

  def self.configure
    yield config
  end

  def self.config
    @config ||= Config.new
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
trace_location-0.1.1 lib/trace_location.rb
trace_location-0.1.0 lib/trace_location.rb