##// END OF EJS Templates
Updates for 1.2.1 release....
Updates for 1.2.1 release. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/1.2-stable@6261 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r4619:144ca23442a5
r6141:f5a6b0cf9322
Show More
text.rb
32 lines | 400 B | text/x-ruby | RubyLexer
module CodeRay
module Encoders
class Text < Encoder
include Streamable
register_for :text
FILE_EXTENSION = 'txt'
DEFAULT_OPTIONS = {
:separator => ''
}
protected
def setup options
super
@sep = options[:separator]
end
def text_token text, kind
text + @sep
end
def finish options
super.chomp @sep
end
end
end
end