class Milestoner::Configuration::Transformers::Generator::Label
Conditionally updates generator label based on gem specification.
Attributes
key[R]
Public Class Methods
new(key = :generator_label, **)
click to toggle source
Calls superclass method
# File lib/milestoner/configuration/transformers/generator/label.rb, line 14 def initialize(key = :generator_label, **) @key = key super(**) end
Public Instance Methods
call(attributes)
click to toggle 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