Sha256: a21ce4bce4ccd2ca6690d91a6e5fe742fef15f8fb70e05bdca3db37b8fd4c5ca

Contents?: true

Size: 273 Bytes

Versions: 7

Compression:

Stored size: 273 Bytes

Contents

# frozen_string_literal: true

if ActiveObject.configuration.autoload_kernel
  module Kernel

    private

    # rubocop:disable Style/PerlBackrefs
    def caller_name
      caller(1..1).first =~ /`([^']*)'/ && $1
    end
    # rubocop:enable Style/PerlBackrefs

  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
active_object-5.2.4 lib/active_object/kernel.rb
active_object-5.2.3 lib/active_object/kernel.rb
active_object-5.2.2 lib/active_object/kernel.rb
active_object-5.2.1 lib/active_object/kernel.rb
active_object-5.2.0 lib/active_object/kernel.rb
active_object-5.1.2 lib/active_object/kernel.rb
active_object-5.1.1 lib/active_object/kernel.rb