# File lib/active_support/core_ext/object/try.rb, line 28 def try(*a, &b) if a.empty? && block_given? yield self elsif !a.empty? && !respond_to?(a.first) nil else __send__(*a, &b) end end