Class: Solargraph::Convention::Rakefile
- Defined in:
- lib/solargraph/convention/rakefile.rb
Constant Summary
Constants inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Instance Method Details
#local(source_map) ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/solargraph/convention/rakefile.rb', line 6 def local source_map basename = File.basename(source_map.filename) return EMPTY_ENVIRON unless basename.end_with?('.rake') || basename == 'Rakefile' @environ ||= Environ.new( requires: ['rake'], domains: ['Rake::DSL'] ) end |