Flowdock
method

try

Importance_0
v6.0.0 - Show latest stable - 0 notes - Class: Tryable
try(method_name = nil, *args, &b) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activesupport/lib/active_support/core_ext/object/try.rb, line 7
    def try(method_name = nil, *args, &b)
      if method_name.nil? && block_given?
        if b.arity == 0
          instance_eval(&b)
        else
          yield self
        end
      elsif respond_to?(method_name)
        public_send(method_name, *args, &b)
      end
    end
Register or log in to add new notes.