Sha256: 682c6a1f0ceebe3fa055265bf54a7784db5e3b1e97d806705a0f2aa7a4625665

Contents?: true

Size: 417 Bytes

Versions: 2

Compression:

Stored size: 417 Bytes

Contents

# frozen_string_literal: true

require "refinements/struct"

module Rubysmith
  module Builders
    # Builds project skeleton Ruby version file.
    class Version < Abstract
      using Refinements::Struct

      def call
        builder.call(configuration.merge(template_path: "%project_name%/.ruby-version.erb"))
               .render
               .append("\n")
        configuration
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rubysmith-6.10.0 lib/rubysmith/builders/version.rb
rubysmith-6.9.0 lib/rubysmith/builders/version.rb