Skip to content

Commit d21348f

Browse files
committed
tweaks
1 parent b09e97b commit d21348f

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

lib/coderay/encoders/html.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ def make_span_for_kinds method, hint
289289
Hash.new do |h, kinds|
290290
begin
291291
css_class = css_class_for_kinds(kinds)
292-
title = Html.token_path_to_hint hint, kinds if hint
292+
title = HTML.token_path_to_hint hint, kinds if hint
293293

294294
if css_class || title
295295
if method == :style

lib/coderay/scanners.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,12 @@ module CodeRay
1616
#
1717
# See PluginHost.
1818
module Scanners
19+
1920
extend PluginHost
2021
plugin_path File.dirname(__FILE__), 'scanners'
22+
23+
autoload :Encoder, CodeRay.coderay_path('scanners', 'scanner')
24+
2125
end
2226

2327
end

lib/coderay/styles.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,12 @@ module CodeRay
44
#
55
# See Plugin.
66
module Styles
7+
78
extend PluginHost
89
plugin_path File.dirname(__FILE__), 'styles'
10+
11+
autoload :Style, CodeRay.coderay_path('styles', 'style')
12+
913
end
1014

1115
end

lib/coderay/tokens.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def to_s
6767
def method_missing meth, options = {}
6868
encode meth, options
6969
rescue PluginHost::PluginNotFound
70-
raise
70+
super
7171
end
7272

7373
# Split the tokens into parts of the given +sizes+.

0 commit comments

Comments
 (0)