Class CodeRay::Encoders::Null
In: lib/coderay/encoders/null.rb
Parent: Encoder

Null Encoder

Does nothing and returns an empty string.

Methods

to_proc   token  

Included Modules

Streamable

Public Instance methods

Defined for faster processing

[Source]

    # File lib/coderay/encoders/null.rb, line 13
13:     def to_proc
14:       proc {}
15:     end

Protected Instance methods

[Source]

    # File lib/coderay/encoders/null.rb, line 19
19:     def token(*)
20:       # do nothing
21:     end

[Validate]