summaryrefslogtreecommitdiff
path: root/lib/coderay/encoders/text.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/coderay/encoders/text.rb')
-rw-r--r--lib/coderay/encoders/text.rb42
1 files changed, 21 insertions, 21 deletions
diff --git a/lib/coderay/encoders/text.rb b/lib/coderay/encoders/text.rb
index 4f0a754..02f76cb 100644
--- a/lib/coderay/encoders/text.rb
+++ b/lib/coderay/encoders/text.rb
@@ -1,33 +1,33 @@
module CodeRay
- module Encoders
+module Encoders
- class Text < Encoder
+ class Text < Encoder
- include Streamable
- register_for :text
+ include Streamable
+ register_for :text
- FILE_EXTENSION = 'txt'
+ FILE_EXTENSION = 'txt'
- DEFAULT_OPTIONS = {
- :separator => ''
- }
+ DEFAULT_OPTIONS = {
+ :separator => ''
+ }
- protected
- def setup options
- super
- @sep = options[:separator]
- end
-
- def token text, kind
- return unless text.respond_to :to_str
- @out << text + @sep
- end
+ protected
+ def setup options
+ super
+ @sep = options[:separator]
+ end
- def finish options
- @out.chomp @sep
- end
+ def token text, kind
+ return unless text.respond_to? :to_str
+ @out << text + @sep
+ end
+ def finish options
+ @out.chomp @sep
end
end
+
+end
end