class Milestoner::Configuration::Transformers::Generator::Label
Conditionally updates generator label based on gem specification.
Attributes
Public Class Methods
Source
# File lib/milestoner/configuration/transformers/generator/label.rb, line 14 def initialize(key = :generator_label, **) super(**) @key = key end
Calls superclass method
Public Instance Methods
Source
# File lib/milestoner/configuration/transformers/generator/label.rb, line 19 def call attributes attributes.fetch(key) { attributes.merge! key => specification.label } Success attributes end