From 8f8d029f1e9ba286e43cedc274a89bae3fb318b4 Mon Sep 17 00:00:00 2001 From: murphy Date: Tue, 30 Mar 2010 01:13:11 +0000 Subject: Added documentation to encoders; more code cleanups. --- lib/coderay/encoders/text.rb | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'lib/coderay/encoders/text.rb') diff --git a/lib/coderay/encoders/text.rb b/lib/coderay/encoders/text.rb index 161ee67..26fef84 100644 --- a/lib/coderay/encoders/text.rb +++ b/lib/coderay/encoders/text.rb @@ -1,6 +1,17 @@ module CodeRay module Encoders - + + # Concats the tokens into a single string, resulting in the original + # code string if no tokens were removed. + # + # Alias: +plain+ + # + # == Options + # + # === :separator + # A separator string to join the tokens. + # + # Default: empty String class Text < Encoder include Streamable -- cgit v1.2.1