From b09e97b08c3c073e79159ff09f6a7e0779fcfd2e Mon Sep 17 00:00:00 2001 From: Kornelius Kalnbach Date: Tue, 22 Oct 2013 01:11:31 +0200 Subject: use autoload again --- lib/coderay/styles.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 lib/coderay/styles.rb (limited to 'lib/coderay/styles.rb') diff --git a/lib/coderay/styles.rb b/lib/coderay/styles.rb new file mode 100644 index 0000000..a7c43e4 --- /dev/null +++ b/lib/coderay/styles.rb @@ -0,0 +1,11 @@ +module CodeRay + + # This module holds the Style class and its subclasses. + # + # See Plugin. + module Styles + extend PluginHost + plugin_path File.dirname(__FILE__), 'styles' + end + +end -- cgit v1.2.1 From d21348f85036273fd8f370a6a850e1c0440c6b02 Mon Sep 17 00:00:00 2001 From: Kornelius Kalnbach Date: Tue, 22 Oct 2013 03:00:46 +0200 Subject: tweaks --- lib/coderay/styles.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/coderay/styles.rb') diff --git a/lib/coderay/styles.rb b/lib/coderay/styles.rb index a7c43e4..d8fa8aa 100644 --- a/lib/coderay/styles.rb +++ b/lib/coderay/styles.rb @@ -4,8 +4,12 @@ module CodeRay # # See Plugin. module Styles + extend PluginHost plugin_path File.dirname(__FILE__), 'styles' + + autoload :Style, CodeRay.coderay_path('styles', 'style') + end end -- cgit v1.2.1