Sha256: 7bcc5ed2433cc63c92b45efaf4fac68f729b5a7e54d7fe447fe7e1dc717f16ea
Contents?: true
Size: 677 Bytes
Versions: 1
Compression:
Stored size: 677 Bytes
Contents
# frozen_string_literal: true require "dry/monads" module Milestoner module Configuration module Transformers module Generator # Conditionally updates generator URI based on gem specification. class URI include Import[:specification] include Dry::Monads[:result] def initialize(key = :generator_uri, **) super(**) @key = key end def call attributes attributes.fetch(key) { attributes.merge! key => specification.homepage_url } Success attributes end private attr_reader :key end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
milestoner-18.12.0 | lib/milestoner/configuration/transformers/generator/uri.rb |