Sha256: 2466b2f70eebffd5ddc90cde33b36518940a68d7fc243affcddf322bb7e8e943

Contents?: true

Size: 348 Bytes

Versions: 1

Compression:

Stored size: 348 Bytes

Contents

# frozen_string_literal: true

if ActiveObject.configuration.autoload_kernel
  module Kernel

    def try_eval
      eval(self)
    rescue Exception
      self
    end

    private

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

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
active_object-5.3.0 lib/active_object/kernel.rb