diff options
Diffstat (limited to 'lib/coderay/helpers/plugin.rb')
-rw-r--r-- | lib/coderay/helpers/plugin.rb | 6 |
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[/\//] |