Class: CodeRay::Encoders::Null

Inherits:
Encoder
  • Object
show all
Includes:
CodeRay::Streamable
Defined in:
vendor/plugins/coderay-0.9.2/lib/coderay/encoders/null.rb

Overview

Null Encoder

Does nothing and returns an empty string.

Constant Summary

Constants inherited from Encoder

DEFAULT_OPTIONS

Instance Method Summary

Methods inherited from Encoder

const_missing, #encode, #encode_stream, #encode_tokens, #file_extension, #initialize, streamable?

Methods included from CodeRay::Plugin

#helper, #included, #plugin_host, #plugin_id, #register_for, #title

Constructor Details

This class inherits a constructor from CodeRay::Encoders::Encoder

Instance Method Details

- (Object) to_proc

Defined for faster processing



13
14
15
# File 'vendor/plugins/coderay-0.9.2/lib/coderay/encoders/null.rb', line 13

def to_proc
  proc {}
end