@@ -72,7 +72,7 @@ class << self
7272 # @overload defaultto(value)
7373 # Defines the default value with a literal value
7474 # @param value [Object] the literal value to use as the default value
75- # @overload defaultto({|| ... })
75+ # @overload defaultto({ ... })
7676 # Defines that the default value is produced by the given block. The given block
7777 # should produce the default value.
7878 # @raise [Puppet::DevError] if value is nil, and no block is given.
@@ -164,7 +164,7 @@ def initvars
164164 @value_collection = ValueCollection . new
165165 end
166166
167- # @overload munge {|| ... }
167+ # @overload munge { ... }
168168 # Defines an optional method used to convert the parameter value from DSL/string form to an internal form.
169169 # If a munge method is not defined, the DSL/string value is used as is.
170170 # @note This adds a method with the name `unsafe_munge` in the created parameter class. Later this method is
@@ -180,7 +180,7 @@ def munge(&block)
180180 define_method ( :unsafe_munge , &block )
181181 end
182182
183- # @overload unmunge {|| ... }
183+ # @overload unmunge { ... }
184184 # Defines an optional method used to convert the parameter value from internal form to DSL/string form.
185185 # If an `unmunge` method is not defined, the internal form is used.
186186 # @see munge
@@ -240,7 +240,7 @@ def required?
240240 @required
241241 end
242242
243- # @overload validate {|| ... }
243+ # @overload validate { ... }
244244 # Defines an optional method that is used to validate the parameter's DSL/string value.
245245 # Validation should raise appropriate exceptions, the return value of the given block is ignored.
246246 # The easiest way to raise an appropriate exception is to call the method {Puppet::Util::Errors.fail} with
0 commit comments