Module: Bri::Templates
- Defined in:
- lib/bri/templates.rb
Defined Under Namespace
Modules: Helpers
Constant Summary collapse
- RULE_CHARACTER =
'-'.freeze
- MULTIPLE_CHOICES =
<<-EOT <%= Bri::Templates::Helpers.hrule( "Multiple choices:" ) %> <%= qualified_methods.sort.join("\n") %> EOT
- CLASS_DESCRIPTION =
<<-EOT <%= hrule( type + ": " + name ) %> <%= print_origin( origin ) %> <% if description_paragraphs.empty? %> (no description...) <% else %> <%= description_paragraphs.join("\n" ) %> <% end %> <%= hrule %> <% if !includes.empty? %> <%= section_header( "Includes:" ) %> <%= Bri::Renderer.wrap_list( includes.sort ) %> <% end %> <% if !extends.empty? %> <%= section_header( "Extends:" ) %> <%= Bri::Renderer.wrap_list( extends.sort ) %> <% end %> <% if !constants.empty? %> <%= section_header( "Constants:" ) %> <%= Bri::Renderer.wrap_list( constants.sort ) %> <% end %> <% if !class_methods.empty? %> <%= section_header( "Class methods:" ) %> <%= Bri::Renderer.wrap_list( class_methods.sort ) %> <% end %> <% if !instance_methods.empty? %> <%= section_header( "Instance methods:" ) %> <%= Bri::Renderer.wrap_list( instance_methods.sort ) %> <% end %> <% if !attributes.empty? %> <%= section_header( "Attributes:" ) %> <%= Bri::Renderer.wrap_list( attributes.sort ) %> <% end %> EOT
- METHOD_DESCRIPTION =
<<-EOT <%= hrule( full_name ) %> <%= print_origin( origin ) %> <%= call_syntaxes %> <%= hrule %> <% if description_paragraphs.empty? %> (no description...) <% else %> <%= description_paragraphs.join( "\n" ) %> <% end %> EOT