Module: Milestoner::Configuration::Transformers::Project
- Defined in:
- lib/milestoner/configuration/transformers/project/label.rb,
lib/milestoner/configuration/transformers/project/author.rb,
lib/milestoner/configuration/transformers/project/version.rb
Overview
Conditionally updates label based on current directory.
Defined Under Namespace
Constant Summary collapse
- Label =
lambda do |attributes, key = :project_label, default: Pathname.pwd.basename.to_s| attributes.fetch(key) { attributes.merge! key => default.titleize } Dry::Monads::Success attributes end