lib/yard/lib/yard/templates/template.rb
# Calls the ERB file from the last inherited template with {#section}.erb
#
# @param [Symbol, String] section if provided, uses a specific section name
# @return [String] the rendered ERB file in any of the inherited template
#   paths.
Calls the ERB file from the last inherited template with {#section}.erb
Calls the ERB file from the last inherited template with { #section } . erb
def superb(section = section, &block)
        filename = self.class.find_nth_file(erb_file_for(section), 2)
        return "" unless filename
        method_name = ErbCache.method_for(filename) { erb_with(IO.read(filename), filename) }
        send(method_name, &block)
      end
def superb ( section = section , & block ) filename = self . class . find_nth_file ( erb_file_for ( section ) , 2 ) return "" unless filename method_name = ErbCache . method_for ( filename ) { erb_with ( IO . read ( filename ) , filename ) } send ( method_name , & block ) end
Calls the ERB file from the last inherited template with {#section}.erb
Calls the ERB file from the last inherited template with { #section } . erb
the rendered ERB file in any of the inherited template paths.
the rendered ERB file in any of the inherited template paths .
String
section
block
section if provided, uses a specific section name
section if provided uses a specific section name