Sha256: 3af553df23c319d0384d56c5760a16c68fefe124febf5321f50c26e116f39737
Contents?: true
Size: 595 Bytes
Versions: 26
Compression:
Stored size: 595 Bytes
Contents
# frozen_string_literal: true require "refinements/structs" module Hanamismith module Builders # Builds project skeleton Rack support. class Rack using Refinements::Structs 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
Version data entries
26 entries across 26 versions & 1 rubygems