lib/trace_location/event.rb in trace_location-0.2.0 vs lib/trace_location/event.rb in trace_location-0.3.0

- old
+ new

@@ -1,15 +1,15 @@ # frozen_string_literal: true module TraceLocation class Event # :nodoc: - CLASS_FORMAT = /\A#<Class\:(.+)?>\z/.freeze + CLASS_FORMAT = /\A#<(?:Class|refinement)\:([A-Za-z0-9\:]+).*>\z/.freeze attr_reader :event, :path, :lineno, :method_id, :defined_class, :hierarchy def initialize(event:, path:, lineno:, method_id:, defined_class:, hierarchy:) - @event = event - @path = path - @lineno = lineno + @event = event + @path = path + @lineno = lineno @method_id = method_id @defined_class = defined_class @hierarchy = hierarchy.to_i end