Sha256: e25484d08994b56d1ec25d61f4551325a446fe5cdd991162271e17fd0510d9c2
Contents?: true
Size: 643 Bytes
Versions: 11
Compression:
Stored size: 643 Bytes
Contents
# frozen_string_literal: true require "refinements/struct" module Hanamismith module Builders module Rack # Builds project skeleton. class Configuration using Refinements::Struct def self.call(...) = new(...).call def initialize configuration, builder: Rubysmith::Builder @configuration = configuration @builder = builder end def call builder.call(configuration.merge(template_path: "%project_name%/config.ru.erb")).render configuration end private attr_reader :configuration, :builder end end end end
Version data entries
11 entries across 11 versions & 1 rubygems