lib/apipie_dsl/dsl.rb in apipie-dsl-2.5.0 vs lib/apipie_dsl/dsl.rb in apipie-dsl-2.6.0
- old
+ new
@@ -464,10 +464,10 @@
options[:name] ||= context.to_s
block = proc {} unless block_given?
delegatee = Delegatee.instance_for(self).with(&block)
- delegatee.short(options[:desc])
+ delegatee.short(options[:desc] || ApipieDSL.configuration.default_class_description&.call(self))
# Don't eval the block, since it will be evaluated after method is defined
return if context == :method
delegatee.with(options).eval_dsl_for(context)
Delegatee.instance_reset