Class: CodeRay::Encoders::Null

Inherits:
Encoder
  • Object
show all
Defined in:
lib/coderay/encoders/null.rb

Overview

Null Encoder

Does nothing and returns an empty string.

Constant Summary

Constants inherited from Encoder

Encoder::DEFAULT_OPTIONS

Instance Attribute Summary

Attributes inherited from Encoder

#options, #scanner

Attributes included from Plugin

#plugin_id

Instance Method Summary collapse

Methods inherited from Encoder

#<<, #begin_group, #begin_line, const_missing, #encode, #encode_tokens, #end_group, #end_line, #file_extension, file_extension, #initialize, #token

Methods included from Plugin

#aliases, #plugin_host, #register_for, #title

Constructor Details

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

Instance Method Details

#text_token(text, kind) ⇒ Object



11
12
13
# File 'lib/coderay/encoders/null.rb', line 11

def text_token text, kind
  # do nothing
end