Sha256: a9948c3c9ab5ab02bc8d56fa3f75132fce9e792e4ac1bc381be2ff697d40686b
Contents?: true
Size: 237 Bytes
Versions: 200
Compression:
Stored size: 237 Bytes
Contents
# frozen_string_literal: true require 'eac_ruby_utils/compact' class Object # If +self+ is a Proc, return the value of +.call+. If not, return +self+. # @return [Object] def call_if_proc is_a?(::Proc) ? call : self end end
Version data entries
200 entries across 200 versions & 4 rubygems