templates/default/function_details/setup.rb in yard-mruby-0.2.2 vs templates/default/function_details/setup.rb in yard-mruby-0.2.3

- old
+ new

@@ -1,12 +1,12 @@ -include YARD::MRuby::Templates::Helpers::HTMLHelper - -def init - sections :header, [:function_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 +include YARD::MRuby::Templates::Helpers::HTMLHelper + +def init + sections :header, [:function_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