From 498df2b7654c210c8f47e2757efc33cd94689b57 Mon Sep 17 00:00:00 2001 From: murphy Date: Sat, 25 Jun 2011 18:23:07 +0000 Subject: coderay list subcommand and cleanups/fixes in Plugin helper (issue #45) --- lib/coderay/scanner.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib/coderay/scanner.rb') diff --git a/lib/coderay/scanner.rb b/lib/coderay/scanner.rb index ec2b3aa..0e0723c 100644 --- a/lib/coderay/scanner.rb +++ b/lib/coderay/scanner.rb @@ -81,7 +81,7 @@ module CodeRay end # The typical filename suffix for this scanner's language. - def file_extension extension = plugin_id + def file_extension extension = lang @file_extension ||= extension.to_s end @@ -91,7 +91,9 @@ module CodeRay end # The lang of this Scanner class, which is equal to its Plugin ID. - alias lang plugin_id + def lang + @plugin_id + end protected -- cgit v1.2.1