Sha256: ee5db1f62df7b8bbd43e0a069af64d3317d46453a4c5de6b9906ba1cb4e45e74
Contents?: true
Size: 594 Bytes
Versions: 2
Compression:
Stored size: 594 Bytes
Contents
# frozen_string_literal: true require "refinements/structs" module Rubysmith module Builders # Builds project skeleton Ruby version file. class Version using Refinements::Structs def self.call(...) = new(...).call def initialize configuration, builder: Builder @configuration = configuration @builder = builder end def call builder.call(configuration.merge(template_path: "%project_name%/.ruby-version.erb")).render configuration end private attr_reader :configuration, :builder end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rubysmith-1.3.0 | lib/rubysmith/builders/version.rb |
rubysmith-1.2.0 | lib/rubysmith/builders/version.rb |