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.5.1 lib/timber/util/object.rb
timber-2.5.0 lib/timber/util/object.rb
timber-2.4.0 lib/timber/util/object.rb
timber-2.3.4 lib/timber/util/object.rb
timber-2.3.3 lib/timber/util/object.rb
timber-2.3.2 lib/timber/util/object.rb
timber-2.3.1 lib/timber/util/object.rb
timber-2.3.0 lib/timber/util/object.rb
timber-2.2.3 lib/timber/util/object.rb
timber-2.2.2 lib/timber/util/object.rb
timber-2.2.1 lib/timber/util/object.rb
timber-2.2.0 lib/timber/util/object.rb
timber-2.1.10 lib/timber/util/object.rb
timber-2.1.9 lib/timber/util/object.rb
timber-2.1.8 lib/timber/util/object.rb
timber-2.1.7 lib/timber/util/object.rb
timber-2.1.6 lib/timber/util/object.rb
timber-2.1.5 lib/timber/util/object.rb
timber-2.1.4 lib/timber/util/object.rb
timber-2.1.3 lib/timber/util/object.rb