diff options
Diffstat (limited to 'lib/coderay/helpers')
-rw-r--r-- | lib/coderay/helpers/plugin.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/coderay/helpers/plugin.rb b/lib/coderay/helpers/plugin.rb index 37bdc4c..f88fe7f 100644 --- a/lib/coderay/helpers/plugin.rb +++ b/lib/coderay/helpers/plugin.rb @@ -206,7 +206,7 @@ protected File.join plugin_path, "#{plugin_id}.rb"
end
- # Converts +id+ to a downcase Symbol if it is a String,
+ # Converts +id+ to a Symbol if it is a String,
# or returns +id+ if it already is a Symbol.
#
# Raises +ArgumentError+ for all other objects, or if the
@@ -216,7 +216,7 @@ protected id
elsif id.is_a? String
if id[/\w+/] == id
- id.downcase.to_sym
+ id.to_sym
else
raise ArgumentError, "Invalid id: '#{id}' given."
end
|