diff options
author | murphy <murphy@rubychan.de> | 2005-10-29 04:55:15 +0000 |
---|---|---|
committer | murphy <murphy@rubychan.de> | 2005-10-29 04:55:15 +0000 |
commit | fb64737038ca13b4047219c429560b97b98fe22b (patch) | |
tree | e1b180bc151643d1a782623fbe94c0c38814b1d1 /lib/coderay/helpers/plugin.rb | |
parent | 840e80d149a2c5651b71f87c6627e475d5401e04 (diff) | |
download | coderay-fb64737038ca13b4047219c429560b97b98fe22b.tar.gz |
encoder.rb: Added Encoder#file_extension
plugin.rb: #load_plugin --> #load; no more debug messages
encoders/html.rb: Documentation; hint system; moved NUMERIZABLE_WRAPPINGS to html_output.rb
encoders/helpers/html_output.rb: made stylesheet a method; disabled code cell hint; fixed inline numerizing
encoders/debug.rb: changed extension to 'raydebug'
etc folder added
included etc/raydebug.vim for cool vim highlighting
Diffstat (limited to 'lib/coderay/helpers/plugin.rb')
-rw-r--r-- | lib/coderay/helpers/plugin.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/coderay/helpers/plugin.rb b/lib/coderay/helpers/plugin.rb index 2518e5a..5c90901 100644 --- a/lib/coderay/helpers/plugin.rb +++ b/lib/coderay/helpers/plugin.rb @@ -90,7 +90,7 @@ module PluginHost id = validate_id(plugin_id)
path = path_to id
begin
- $stderr.puts 'Loading plugin: ' + path if $DEBUG
+ #$stderr.puts 'Loading plugin: ' + path if $DEBUG
require path
rescue LoadError => boom
raise PluginNotFound, 'Could not load plugin %p: %s' % [id, boom]
@@ -151,7 +151,7 @@ module PluginHost end
# Alias for +[]+.
- alias load_plugin []
+ alias load []
# Returns the Plugin for +id+.
# Use it like Hash#fetch.
@@ -239,7 +239,7 @@ def require_plugin path host = PluginHost.host_by_id(host_id)
raise PluginHost::HostNotFound,
"No host for #{host_id.inspect} found." unless host
- host.load_plugin plugin_id
+ host.load plugin_id
end
|