Class: RailsLens::Analyzers::Base

Inherits:
Object
  • Object
show all
Includes:
ErrorHandling
Defined in:
lib/rails_lens/analyzers/base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from ErrorHandling

#safe_analyze

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_classObject (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

#analyzeObject

Raises:

  • (NotImplementedError)


16
17
18
# File 'lib/rails_lens/analyzers/base.rb', line 16

def analyze
  raise NotImplementedError, 'Subclasses must implement #analyze'
end