Class: ConfigMapper::ProcFactory
- Inherits:
-
Object
- Object
- ConfigMapper::ProcFactory
- Defined in:
- lib/config_mapper/factory.rb
Instance Method Summary collapse
-
#initialize(f) ⇒ ProcFactory
constructor
rubocop:disable Naming/MethodParameterName.
- #new ⇒ Object
Constructor Details
#initialize(f) ⇒ ProcFactory
rubocop:disable Naming/MethodParameterName
18 19 20 |
# File 'lib/config_mapper/factory.rb', line 18 def initialize(f) # rubocop:disable Naming/MethodParameterName @f = f end |
Instance Method Details
#new ⇒ Object
22 23 24 |
# File 'lib/config_mapper/factory.rb', line 22 def new @f.call end |