Class: Lerna::Strategy
- Inherits:
-
Object
- Object
- Lerna::Strategy
- Defined in:
- lib/lerna/strategy.rb
Direct Known Subclasses
Lerna::Strategies::ExternalDigitalOnly, Lerna::Strategies::InternalOnly, Lerna::Strategies::Wall
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(displays) ⇒ Strategy
constructor
A new instance of Strategy.
Constructor Details
#initialize(displays) ⇒ Strategy
Returns a new instance of Strategy.
11 12 13 |
# File 'lib/lerna/strategy.rb', line 11 def initialize(displays) @displays = displays end |
Class Method Details
.register(names_and_classes) ⇒ Object
7 8 9 |
# File 'lib/lerna/strategy.rb', line 7 def self.register(names_and_classes) registry.merge!(names_and_classes) end |
.registry ⇒ Object
3 4 5 |
# File 'lib/lerna/strategy.rb', line 3 def self.registry @registry ||= {} end |