diff options
Diffstat (limited to 'lib/coderay/scanner.rb')
-rw-r--r-- | lib/coderay/scanner.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/coderay/scanner.rb b/lib/coderay/scanner.rb index 8233b2c..d6dd19f 100644 --- a/lib/coderay/scanner.rb +++ b/lib/coderay/scanner.rb @@ -152,6 +152,11 @@ module CodeRay alias code string alias code= string= + # Returns the Plugin ID for this scanner. + def lang + self.class.plugin_id + end + # Scans the code and returns all tokens in a Tokens object. def tokenize new_string=nil, options = {} options = @options.merge(options) |