diff options
Diffstat (limited to 'lib/coderay/encoder.rb')
-rw-r--r-- | lib/coderay/encoder.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/coderay/encoder.rb b/lib/coderay/encoder.rb index 448a45b..362cfb4 100644 --- a/lib/coderay/encoder.rb +++ b/lib/coderay/encoder.rb @@ -109,6 +109,11 @@ module CodeRay method(:token).to_proc
end
+ # Return the default file extension for outputs of this encoder.
+ def file_extension
+ self.class::FILE_EXTENSION
+ end
+
protected
# Called with merged options before encoding starts.
|