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

Member predicate LocalVariable::isCaptured

Holds if this variable is captured. For example in

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

x is a captured variable, whereas y is not.

predicate isCaptured()