##// END OF EJS Templates
Merged r1451 to r1454, r1458, r1460 to r1463 from trunk....
Merged r1451 to r1454, r1458, r1460 to r1463 from trunk. git-svn-id: http://redmine.rubyforge.org/svn/branches/0.7-stable@1474 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r638:889d50089d4d
r1460:2074f0ab4144
Show More
null.rb
26 lines | 320 B | text/x-ruby | RubyLexer
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