Class: Kettle::Wash::Change
- Inherits:
-
Module
- Object
- Module
- Kettle::Wash::Change
- Defined in:
- lib/kettle/wash.rb,
sig/kettle/wash.rbs
Defined Under Namespace
Modules: ConstantChange
Instance Method Summary collapse
- #included(base) ⇒ nil
-
#initialize(constants: nil, path: nil) ⇒ Change
constructor
A new instance of Change.
Constructor Details
#initialize(constants: nil, path: nil) ⇒ Change
Returns a new instance of Change.
61 62 63 64 65 |
# File 'lib/kettle/wash.rb', line 61 def initialize(constants: nil, path: nil) super() @constants = Array(constants) if constants @path = path if path end |
Instance Method Details
#included(base) ⇒ nil
67 68 69 70 71 72 73 |
# File 'lib/kettle/wash.rb', line 67 def included(base) constants = @constants path = @path return unless constants && path base.extend(ConstantChange.to_mod(constants: constants, path: path)) end |