class Apricot::TopLevelScope
Public Instance Methods
find_recur_target()
click to toggle source
A (recur) is looking for a recursion target. Since this is the top level, which has no parent, the lookup has failed.
# File lib/apricot/scopes.rb, line 41 def find_recur_target nil end
find_var(name, depth = nil)
click to toggle source
A nested scope is looking up a variable. There are no local variables at the top level, so look up the variable on the current namespace.
# File lib/apricot/scopes.rb, line 34 def find_var(name, depth = nil) # Ignore depth, it has no bearing on namespace lookups. QualifiedReference.new(name, Apricot.current_namespace) end