class Solargraph::Convention::Gemfile

Public Instance Methods

local(source_map) click to toggle source
# File lib/solargraph/convention/gemfile.rb, line 5
def local source_map
  return EMPTY_ENVIRON unless File.basename(source_map.filename) == 'Gemfile'
  @environ ||= Environ.new(
    requires: ['bundler'],
    domains: ['Bundler::Dsl']
  )
end