Class: RailsLens::Providers::InheritanceProvider

Inherits:
Base
  • Object
show all
Defined in:
lib/rails_lens/providers/inheritance_provider.rb

Instance Method Summary collapse

Methods inherited from Base

#applicable?

Instance Method Details

#process(model_class, connection = nil) ⇒ Object



10
11
12
13
14
15
16
17
18
19
20
# File 'lib/rails_lens/providers/inheritance_provider.rb', line 10

def process(model_class, connection = nil)
  analyzer = Analyzers::Inheritance.new(model_class)
  content = analyzer.analyze

  return nil unless content

  {
    title: nil, # Content already includes section header
    content: content
  }
end

#typeObject



6
7
8
# File 'lib/rails_lens/providers/inheritance_provider.rb', line 6

def type
  :section
end