Sha256: df23b5ffe69bcb6149e67b4a2053c7429e905b1a3de64544d02a595b128d0ec7

Contents?: true

Size: 322 Bytes

Versions: 9

Compression:

Stored size: 322 Bytes

Contents

# frozen_string_literal: true

module Rubysmith
  module Configuration
    module Enhancers
      # Prepends template roots to existing content.
      TemplateRoot = lambda do |content, overrides: Pathname(__dir__).join("../../templates")|
        content.add_template_roots(*Array(overrides))
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rubysmith-4.9.0 lib/rubysmith/configuration/enhancers/template_root.rb
rubysmith-4.8.0 lib/rubysmith/configuration/enhancers/template_root.rb
rubysmith-4.7.0 lib/rubysmith/configuration/enhancers/template_root.rb
rubysmith-4.6.1 lib/rubysmith/configuration/enhancers/template_root.rb
rubysmith-4.6.0 lib/rubysmith/configuration/enhancers/template_root.rb
rubysmith-4.5.0 lib/rubysmith/configuration/enhancers/template_root.rb
rubysmith-4.4.0 lib/rubysmith/configuration/enhancers/template_root.rb
rubysmith-4.3.0 lib/rubysmith/configuration/enhancers/template_root.rb
rubysmith-4.2.0 lib/rubysmith/configuration/enhancers/template_root.rb