Sha256: d317c1a11a6b6260d11a0f700c719c6512710d47ceaa27760259529866ec0527

Contents?: true

Size: 262 Bytes

Versions: 43

Compression:

Stored size: 262 Bytes

Contents

module Timber
  module Util
    # @private
    module Object
      # @private
      def self.try(object, method, *args)
        if object == nil
          nil
        else
          object.send(method, *args) rescue object
        end
      end
    end
  end
end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
timber-2.0.11 lib/timber/util/object.rb
timber-2.0.10 lib/timber/util/object.rb
timber-2.0.9 lib/timber/util/object.rb