Sha256: f9e2b80fbb3bfb836612830bba5244f9fbb3f3f2b57b5339707474989c1ed5e0

Contents?: true

Size: 337 Bytes

Versions: 4

Compression:

Stored size: 337 Bytes

Contents

module CodeRay
	module Encoders

		# = Null Encoder
		#
		# Does nothing and returns an empty string.
		class Null < Encoder

			include Streamable
			register_for :null

			# Defined for faster processing
			def to_proc
				proc {}
			end

		protected

			def token(*)
				# do nothing
			end

		end

	end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
coderay-0.5.0.100 ./lib/coderay/encoders/null.rb
coderay-0.5.0.121 ./lib/coderay/encoders/null.rb
coderay-0.5.0.115 ./lib/coderay/encoders/null.rb
coderay-0.4.5.73 ./lib/coderay/encoders/null.rb