Class: Annotator::InitialDescription::Base
- Inherits:
-
Object
- Object
- Annotator::InitialDescription::Base
- Defined in:
- lib/annotator/initial_description/base.rb
Overview
Base class from which all other description providers inherit
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(model, column) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(model, column) ⇒ Base
Returns a new instance of Base.
6 7 8 9 |
# File 'lib/annotator/initial_description/base.rb', line 6 def initialize(model, column) @model = model @column = column end |
Class Method Details
.inherited(klass) ⇒ Object
11 12 13 14 |
# File 'lib/annotator/initial_description/base.rb', line 11 def self.inherited(klass) @providers ||= [] @providers << klass end |
.providers ⇒ Object
16 17 18 |
# File 'lib/annotator/initial_description/base.rb', line 16 def self.providers @providers end |