templates/default/method_details/setup.rb in yard-0.9.16 vs templates/default/method_details/setup.rb in yard-0.9.17

- old
+ new

@@ -1,11 +1,11 @@ -# frozen_string_literal: true -def init - sections :header, [:method_signature, T('docstring'), :source] -end - -def source - return if owner != object.namespace - return if Tags::OverloadTag === object - return if object.source.nil? - erb(:source) -end +# frozen_string_literal: true +def init + sections :header, [:method_signature, T('docstring'), :source] +end + +def source + return if owner != object.namespace + return if Tags::OverloadTag === object + return if object.source.nil? + erb(:source) +end