Class: Stefon::Surveyor::Base
- Inherits:
-
Object
- Object
- Stefon::Surveyor::Base
- Defined in:
- lib/stefon/surveyor/surveyor.rb
Overview
A scaffold for concrete surveyors, meant to be extended This class calculates whose code the gem user is affecting the most for a particular kind of behavior (eg. line / file deletion)
Direct Known Subclasses
Class Attribute Summary collapse
-
.grit ⇒ Object
Returns the value of attribute grit.
Instance Attribute Summary collapse
-
#scores ⇒ Object
Returns the value of attribute scores.
-
#weight ⇒ Object
readonly
Returns the value of attribute weight.
Instance Method Summary collapse
-
#initialize(weight) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(weight) ⇒ Base
Returns a new instance of Base.
39 40 41 42 43 |
# File 'lib/stefon/surveyor/surveyor.rb', line 39 def initialize(weight) @grit ||= GritUtil.new @scores = SurveyorStore.new @weight = weight end |
Class Attribute Details
.grit ⇒ Object
Returns the value of attribute grit.
37 38 39 |
# File 'lib/stefon/surveyor/surveyor.rb', line 37 def grit @grit end |
Instance Attribute Details
#scores ⇒ Object
Returns the value of attribute scores.
35 36 37 |
# File 'lib/stefon/surveyor/surveyor.rb', line 35 def scores @scores end |
#weight ⇒ Object (readonly)
Returns the value of attribute weight.
34 35 36 |
# File 'lib/stefon/surveyor/surveyor.rb', line 34 def weight @weight end |