Class: Sbmt::Strangler::Builder
- Inherits:
-
Object
- Object
- Sbmt::Strangler::Builder
- Defined in:
- lib/sbmt/strangler/builder.rb
Instance Attribute Summary collapse
-
#configuration ⇒ Object
readonly
Returns the value of attribute configuration.
Class Method Summary collapse
Instance Method Summary collapse
- #call! ⇒ Object
-
#initialize(configuration) ⇒ Builder
constructor
A new instance of Builder.
Constructor Details
#initialize(configuration) ⇒ Builder
Returns a new instance of Builder.
9 10 11 |
# File 'lib/sbmt/strangler/builder.rb', line 9 def initialize(configuration) @configuration = configuration end |
Instance Attribute Details
#configuration ⇒ Object (readonly)
Returns the value of attribute configuration.
6 7 8 |
# File 'lib/sbmt/strangler/builder.rb', line 6 def configuration @configuration end |
Class Method Details
.call!(configuration = Sbmt::Strangler.configuration) ⇒ Object
18 19 20 |
# File 'lib/sbmt/strangler/builder.rb', line 18 def self.call!(configuration = Sbmt::Strangler.configuration) new(configuration).call! end |
Instance Method Details
#call! ⇒ Object
13 14 15 16 |
# File 'lib/sbmt/strangler/builder.rb', line 13 def call! build_controllers add_feature_flags end |