class Milestoner::Configuration::Transformers::Build::TemplatePaths
Ensures XDG configuration and gem template paths are configured.
Public Class Methods
new(key = :build_template_paths, default: Pathname(__dir__).join("../../../templates"), xdg: Runcom::Config.new("milestoner/templates"))
click to toggle source
# File lib/milestoner/configuration/transformers/build/template_paths.rb, line 15 def initialize key = :build_template_paths, default: Pathname(__dir__).join("../../../templates"), xdg: Runcom::Config.new("milestoner/templates") @key = key @default = default @xdg = xdg end
Public Instance Methods
call(attributes)
click to toggle source
# File lib/milestoner/configuration/transformers/build/template_paths.rb, line 23 def call(attributes) = Success attributes.merge!(key => xdg.all.append(default)) private attr_reader :key, :default, :xdg end