lib/timber/util/object.rb in timber-2.0.8 vs lib/timber/util/object.rb in timber-2.0.9

- old
+ new

@@ -1,14 +1,14 @@ module Timber module Util # @private module Object # @private - def self.try(object, method) + def self.try(object, method, *args) if object == nil nil else - object.send(method) rescue object + object.send(method, *args) rescue object end end end end end \ No newline at end of file