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

Member predicate LocalVariableAccess::isCapturedAccess

Holds if this access is a captured variable access. For example in

def m x
  x.times do |y|
    puts x
  end
  puts x
end

the access to x in the first puts x is a captured access, while the access to x in the second puts x is not.

predicate isCapturedAccess()