lib/solargraph/library.rb
# Attach a source to the library.
#
# The attached source does not need to be a part of the workspace. The
# library will include it in the ApiMap while it's attached. Only one
# source can be attached to the library at a time.
#
# @param source [Source, nil]
# @return [void]
Attach a source to the library.
The attached source does not need to be a part of the workspace. The
library will include it in the ApiMap while it's attached. Only one
source can be attached to the library at a time.
Attach a source to the library . The attached source does not need to be a part of the workspace . The library will include it in the ApiMap while it ' s attached . Only one source can be attached to the library at a time .
def attach source
      mutex.synchronize do
        @synchronized = (@current == source) if synchronized?
        @current = source
      end
    end
def attach source mutex . synchronize do @synchronized = ( @current == source ) if synchronized? @current = source end end
Attach a source to the library.
Attach a source to the library .
None
void
source
<not_specific>
<not_specific>
None