From 5be0927a5dfecd56c45b4f4c3a5a19d5e1ac9729 Mon Sep 17 00:00:00 2001 From: murphy Date: Wed, 30 Dec 2009 07:07:33 +0000 Subject: Documentation. --- lib/coderay/helpers/plugin.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib/coderay/helpers/plugin.rb') diff --git a/lib/coderay/helpers/plugin.rb b/lib/coderay/helpers/plugin.rb index fba8bb4..34b31a8 100644 --- a/lib/coderay/helpers/plugin.rb +++ b/lib/coderay/helpers/plugin.rb @@ -280,7 +280,9 @@ module Plugin def register_for *ids plugin_host.register self, *ids end - + + # Returns the title of the plugin, or sets it to the + # optional argument +title+. def title title = nil if title @title = title.to_s @@ -312,7 +314,7 @@ module Plugin # # You can also load a helper from a different plugin: # - # helper 'other_plugin/other_helper' + # helper 'other_plugin/helper_name' def helper *helpers for helper in helpers if helper.is_a?(String) && helper[/\//] -- cgit v1.2.1