templates/default/class/setup.rb in yard-0.8.3 vs templates/default/class/setup.rb in yard-0.8.4
- old
+ new
@@ -6,10 +6,10 @@
sections.place(:constructor_details, [T('method_details')]).before(:methodmissing)
end
def constructor_details
ctors = object.meths(:inherited => true, :included => true)
- return unless @ctor = ctors.find {|o| o.name == :initialize }
+ return unless @ctor = ctors.find {|o| o.constructor? }
return if prune_method_listing([@ctor]).empty?
erb(:constructor_details)
end
def subclasses
\ No newline at end of file