Class: Contextizer::Analyzers::Base
- Inherits:
-
Object
- Object
- Contextizer::Analyzers::Base
show all
- Defined in:
- lib/contextizer/analyzers/base.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Constructor Details
#initialize(target_path:) ⇒ Base
Returns a new instance of Base.
10
11
12
13
|
# File 'lib/contextizer/analyzers/base.rb', line 10
def initialize(target_path:)
@target_path = Pathname.new(target_path)
@score = 0
end
|
Class Method Details
.call(target_path:) ⇒ Object
6
7
8
|
# File 'lib/contextizer/analyzers/base.rb', line 6
def self.call(target_path:)
new(target_path: target_path).analyze
end
|
Instance Method Details
#analyze ⇒ Object
15
16
17
|
# File 'lib/contextizer/analyzers/base.rb', line 15
def analyze
raise NotImplementedError, "#{self.class.name} must implement #analyze"
end
|