summaryrefslogtreecommitdiff
path: root/lib/coderay/helpers/plugin.rb
diff options
context:
space:
mode:
authormurphy <murphy@rubychan.de>2009-12-30 07:07:33 +0000
committermurphy <murphy@rubychan.de>2009-12-30 07:07:33 +0000
commit5be0927a5dfecd56c45b4f4c3a5a19d5e1ac9729 (patch)
treebdcb63fb61f5daf4baefb93b9168aa630478a1ec /lib/coderay/helpers/plugin.rb
parent75cd42c31a6b4bf3a148a8a1bb72009e5bcbda46 (diff)
downloadcoderay-5be0927a5dfecd56c45b4f4c3a5a19d5e1ac9729.tar.gz
Documentation.
Diffstat (limited to 'lib/coderay/helpers/plugin.rb')
-rw-r--r--lib/coderay/helpers/plugin.rb6
1 files changed, 4 insertions, 2 deletions
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[/\//]