Sha256: 717330815a016ee4d22d829cf0893a7843c0bd71660b9d5b975c33c5987d474a

Contents?: true

Size: 403 Bytes

Versions: 10

Compression:

Stored size: 403 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(settings.merge(template_path: "%project_name%/.ruby-version.erb"))
               .render
               .append("\n")
        true
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rubysmith-7.9.0 lib/rubysmith/builders/version.rb
rubysmith-7.8.0 lib/rubysmith/builders/version.rb
rubysmith-7.7.0 lib/rubysmith/builders/version.rb
rubysmith-7.6.0 lib/rubysmith/builders/version.rb
rubysmith-7.5.0 lib/rubysmith/builders/version.rb
rubysmith-7.4.0 lib/rubysmith/builders/version.rb
rubysmith-7.3.0 lib/rubysmith/builders/version.rb
rubysmith-7.2.0 lib/rubysmith/builders/version.rb
rubysmith-7.1.0 lib/rubysmith/builders/version.rb
rubysmith-7.0.0 lib/rubysmith/builders/version.rb