Class: Solargraph::Convention::Base

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

Direct Known Subclasses

Gemfile, Gemspec, Rspec

Constant Summary collapse

EMPTY_ENVIRON =
Environ.new

Instance Method Summary collapse

Instance Method Details

#environEnviron

The Environ for this convention. Subclasses should override this method.

Returns:



20
21
22
# File 'lib/solargraph/convention/base.rb', line 20

def environ
  EMPTY_ENVIRON
end

#match?(source) ⇒ Boolean

True if the source qualifies for this convention. Subclasses should override this method.

Parameters:

Returns:

  • (Boolean)


12
13
14
# File 'lib/solargraph/convention/base.rb', line 12

def match? source
  false
end