class Object

Public Instance Methods

try!(method_name, *args) click to toggle source
# File lib/try_bang.rb, line 4
def try!(method_name, *args)
  method_name = method_name.to_sym
  if self.respond_to?(method_name, true)
    self.send(method_name, *args)
  end
end