Sha256: 25e8d4bad6255d482708783d7d506c06813c3dc9ac04e01a0662b1bc60aa2856
Contents?: true
Size: 463 Bytes
Versions: 2
Compression:
Stored size: 463 Bytes
Contents
# frozen_string_literal: true if ActiveObject.configuration.autoload_kernel module Kernel # rubocop:disable Lint/RescueException, Security/Eval def try_eval eval(self) rescue Exception self end # rubocop:enable Lint/RescueException, Security/Eval private # rubocop:disable Style/PerlBackrefs def caller_name caller(1..1).first =~ /`([^']*)'/ && $1 end # rubocop:enable Style/PerlBackrefs end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
active_object-5.4.0 | lib/active_object/kernel.rb |
active_object-5.3.1 | lib/active_object/kernel.rb |