Sha256: a2a2ad536833e53ab901ea46638578ff35d13ad080e0f472535e2701e26d48ca
Contents?: true
Size: 694 Bytes
Versions: 10
Compression:
Stored size: 694 Bytes
Contents
# frozen_string_literal: true require "refinements/struct" module Hanamismith module Builders module Providers # Builds project skeleton for YJIT provider. class YJIT using Refinements::Struct def self.call(...) = new(...).call def initialize configuration, builder: Rubysmith::Builder @configuration = configuration @builder = builder end def call path = "%project_name%/config/providers/yjit.rb.erb" builder.call(configuration.merge(template_path: path)).render configuration end private attr_reader :configuration, :builder end end end end
Version data entries
10 entries across 10 versions & 1 rubygems