Sha256: dec67c7f74cd22301487c22a5a41cd60caf3d25058ac459a4d2e53f96e7a94cd

Contents?: true

Size: 248 Bytes

Versions: 20

Compression:

Stored size: 248 Bytes

Contents

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

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
timber-2.0.8 lib/timber/util/object.rb
timber-2.0.7 lib/timber/util/object.rb
timber-2.0.6 lib/timber/util/object.rb
timber-2.0.5 lib/timber/util/object.rb
timber-2.0.4 lib/timber/util/object.rb
timber-2.0.3 lib/timber/util/object.rb
timber-2.0.2 lib/timber/util/object.rb
timber-2.0.1 lib/timber/util/object.rb
timber-2.0.0 lib/timber/util/object.rb
timber-1.1.14 lib/timber/util/object.rb
timber-1.1.13 lib/timber/util/object.rb
timber-1.1.12 lib/timber/util/object.rb
timber-1.1.11 lib/timber/util/object.rb
timber-1.1.10 lib/timber/util/object.rb
timber-1.1.9 lib/timber/util/object.rb
timber-1.1.8 lib/timber/util/object.rb
timber-1.1.7 lib/timber/util/object.rb
timber-1.1.6 lib/timber/util/object.rb
timber-1.1.5 lib/timber/util/object.rb
timber-1.1.4 lib/timber/util/object.rb