Class: Solargraph::Convention::Gemfile

Inherits:
Base
  • Object
show all
Defined in:
lib/solargraph/convention/gemfile.rb

Constant Summary

Constants inherited from Base

Base::EMPTY_ENVIRON

Instance Method Summary collapse

Instance Method Details

#environObject



10
11
12
13
14
15
# File 'lib/solargraph/convention/gemfile.rb', line 10

def environ
  @environ ||= Environ.new(
    requires: ['bundler'],
    domains: ['Bundler::Dsl']
  )
end

#match?(source) ⇒ Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/solargraph/convention/gemfile.rb', line 6

def match? source
  File.basename(source.filename) == 'Gemfile'
end