CodeQL library for Ruby
codeql/ruby-all 0.8.15-dev (changelog, source)
Search

Module ActiveSupport::CoreExtensions::Object

Extensions to the Object class.

Import path

import codeql.ruby.frameworks.ActiveSupport

Classes

TryCallCodeExecution

A call to Object#try, which may execute its first argument as a Ruby method call. rb x = "abc" x.try(:upcase) # => "ABC" y = nil y.try(:upcase) # => nil Object#try! behaves similarly but raises NoMethodError if the receiver is not nil and does not respond to the method.