Class: Laser::Analysis::ClosedScope

Inherits:
Scope
  • Object
show all
Defined in:
lib/laser/analysis/scope.rb

Instance Attribute Summary

Attributes inherited from Scope

#constants, #lexical_target, #locals, #method, #parent

Instance Method Summary (collapse)

Methods inherited from Scope

#add_binding!, #initialize, #initialize_copy, #lookup, #lookup_global, #lookup_ivar, #lookup_or_create_local, #path, #sees_var?, #self_ptr, #self_ptr=

Constructor Details

This class inherits a constructor from Laser::Analysis::Scope

Instance Method Details

- (Object) lookup_local(str)



113
114
115
# File 'lib/laser/analysis/scope.rb', line 113

def lookup_local(str)
  locals[str] or raise ScopeLookupFailure.new(self, str)
end