Sha256: 799ce6f2f7828c0fcc0039920f1d23f228c52d0de1a6d8fb18bc0b090c042d27

Contents?: true

Size: 320 Bytes

Versions: 75

Compression:

Stored size: 320 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

75 entries across 75 versions & 6 rubygems

Version Path
raldred-coderay-0.9.339 ./lib/coderay/encoders/null.rb
raldred-coderay-0.9.3391 ./lib/coderay/encoders/null.rb
raldred-coderay-0.9.3431 ./lib/coderay/encoders/null.rb
raldred-coderay-0.9.3551 ./lib/coderay/encoders/null.rb
redcar-dev-0.12.1dev-java lib/openssl/mocha/vendor/coderay-0.7.4.215/lib/coderay/encoders/null.rb
redcar-dev-0.12.0dev-java lib/openssl/mocha/vendor/coderay-0.7.4.215/lib/coderay/encoders/null.rb
coderay-0.9.8 ./lib/coderay/encoders/null.rb
coderay-0.9.8.pre ./lib/coderay/encoders/null.rb
redcar-0.11 lib/openssl/mocha/vendor/coderay-0.7.4.215/lib/coderay/encoders/null.rb
redcar-0.11.0dev lib/openssl/mocha/vendor/coderay-0.7.4.215/lib/coderay/encoders/null.rb
redcar-0.10 lib/openssl/mocha/vendor/coderay-0.7.4.215/lib/coderay/encoders/null.rb
coderay-0.9.7 ./lib/coderay/encoders/null.rb
coderay-0.9.7.pre ./lib/coderay/encoders/null.rb
redcar-0.9.2 lib/openssl/mocha/vendor/coderay-0.7.4.215/lib/coderay/encoders/null.rb
redcar-0.9.1 lib/openssl/mocha/vendor/coderay-0.7.4.215/lib/coderay/encoders/null.rb
redcar-0.9.0 lib/openssl/mocha/vendor/coderay-0.7.4.215/lib/coderay/encoders/null.rb
coderay-0.9.6 ./lib/coderay/encoders/null.rb
coderay-0.9.6.pre2 ./lib/coderay/encoders/null.rb
redcar-0.8.1 lib/openssl/mocha/vendor/coderay-0.7.4.215/lib/coderay/encoders/null.rb
redcar-0.8 lib/openssl/mocha/vendor/coderay-0.7.4.215/lib/coderay/encoders/null.rb