Class: RailsLens::Analyzers::Base
- Inherits:
-
Object
- Object
- RailsLens::Analyzers::Base
- Includes:
- ErrorHandling
- Defined in:
- lib/rails_lens/analyzers/base.rb
Direct Known Subclasses
AssociationAnalyzer, BestPracticesAnalyzer, Callbacks, ColumnAnalyzer, CompositeKeys, DatabaseConstraints, DelegatedTypes, Enums, ForeignKeyAnalyzer, GeneratedColumns, IndexAnalyzer, Inheritance, Notes, PerformanceAnalyzer
Instance Attribute Summary collapse
-
#model_class ⇒ Object
readonly
Returns the value of attribute model_class.
Instance Method Summary collapse
- #analyze ⇒ Object
-
#initialize(model_class) ⇒ Base
constructor
A new instance of Base.
Methods included from ErrorHandling
Constructor Details
#initialize(model_class) ⇒ Base
Returns a new instance of Base.
12 13 14 |
# File 'lib/rails_lens/analyzers/base.rb', line 12 def initialize(model_class) @model_class = model_class end |
Instance Attribute Details
#model_class ⇒ Object (readonly)
Returns the value of attribute model_class.
10 11 12 |
# File 'lib/rails_lens/analyzers/base.rb', line 10 def model_class @model_class end |
Instance Method Details
#analyze ⇒ Object
16 17 18 |
# File 'lib/rails_lens/analyzers/base.rb', line 16 def analyze raise NotImplementedError, 'Subclasses must implement #analyze' end |