templates/guide/module/html/setup.rb in yard-0.9.5 vs templates/guide/module/html/setup.rb in yard-0.9.6
- old
+ new
@@ -1,13 +1,14 @@
+# frozen_string_literal: true
include Helpers::ModuleHelper
def init
sections :header, [T('docstring')], :method_list, [T('method')]
end
def method_list
@meths = object.meths(:inherited => false, :included => false)
- cons = @meths.find {|meth| meth.constructor? }
+ cons = @meths.find(&:constructor?)
@meths = @meths.reject {|meth| special_method?(meth) }
@meths = sort_listing(prune_method_listing(@meths, false))
@meths.unshift(cons) if cons
erb(:method_list)
end