method

try

try(*args, &block)
public

No documentation available.

# File activesupport/lib/active_support/core_ext/object/try.rb, line 7
    def try(*args, &block)
      if args.empty? && block_given?
        if block.arity == 0
          instance_eval(&block)
        else
          yield self
        end
      elsif respond_to?(args.first)
        public_send(*args, &block)
      end
    end