diff options
author | murphy <murphy@rubychan.de> | 2011-06-25 18:23:07 +0000 |
---|---|---|
committer | murphy <murphy@rubychan.de> | 2011-06-25 18:23:07 +0000 |
commit | 498df2b7654c210c8f47e2757efc33cd94689b57 (patch) | |
tree | bda6e10d3eadbf22f1a1a1a2d4e8d0cf7844a3b0 /lib/coderay/scanner.rb | |
parent | d6fe4e777a4f543c8828dbf77e955ab38e6c2803 (diff) | |
download | coderay-498df2b7654c210c8f47e2757efc33cd94689b57.tar.gz |
coderay list subcommand and cleanups/fixes in Plugin helper (issue #45)
Diffstat (limited to 'lib/coderay/scanner.rb')
-rw-r--r-- | lib/coderay/scanner.rb | 6 |
1 files changed, 4 insertions, 2 deletions
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 |