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.1.2 lib/timber/util/object.rb
timber-2.1.1 lib/timber/util/object.rb
timber-2.1.0 lib/timber/util/object.rb
timber-2.1.0.rc6 lib/timber/util/object.rb
timber-2.1.0.rc5 lib/timber/util/object.rb
timber-2.1.0.rc4 lib/timber/util/object.rb
timber-2.1.0.rc3 lib/timber/util/object.rb
timber-2.1.0.rc2 lib/timber/util/object.rb
timber-2.1.0.rc1 lib/timber/util/object.rb
timber-2.0.24 lib/timber/util/object.rb
timber-2.0.23 lib/timber/util/object.rb
timber-2.0.22 lib/timber/util/object.rb
timber-2.0.21 lib/timber/util/object.rb
timber-2.0.20 lib/timber/util/object.rb
timber-2.0.19 lib/timber/util/object.rb
timber-2.0.17 lib/timber/util/object.rb
timber-2.0.16 lib/timber/util/object.rb
timber-2.0.15 lib/timber/util/object.rb
timber-2.0.14 lib/timber/util/object.rb
timber-2.0.12 lib/timber/util/object.rb