Class: Hanamismith::Builders::Providers::Persistence
- Inherits:
-
Object
- Object
- Hanamismith::Builders::Providers::Persistence
- Defined in:
- lib/hanamismith/builders/providers/persistence.rb
Overview
Builds project skeleton for persistence provider.
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(configuration, builder: Rubysmith::Builder) ⇒ Persistence
constructor
A new instance of Persistence.
Constructor Details
#initialize(configuration, builder: Rubysmith::Builder) ⇒ Persistence
Returns a new instance of Persistence.
14 15 16 17 |
# File 'lib/hanamismith/builders/providers/persistence.rb', line 14 def initialize configuration, builder: Rubysmith::Builder @configuration = configuration @builder = builder end |
Class Method Details
.call ⇒ Object
12 |
# File 'lib/hanamismith/builders/providers/persistence.rb', line 12 def self.call(...) = new(...).call |
Instance Method Details
#call ⇒ Object
19 20 21 22 23 |
# File 'lib/hanamismith/builders/providers/persistence.rb', line 19 def call path = "%project_name%/config/providers/persistence.rb.erb" builder.call(configuration.merge(template_path: path)).render configuration end |