Methods

CodeRay::Encoders::Filter

A Filter encoder has another Tokens instance as output. It can be subclass to select, remove, or modify tokens in the stream.

Subclasses of Filter are called “Filters” and can be chained.

Options

:tokens

The Tokens object which will receive the output.

Default: Tokens.new

See also: TokenKindFilter

Protected Instance Methods

finish(options) click to toggle source
    # File lib/coderay/encoders/filter.rb, line 29
29:     def finish options
30:       output @tokens
31:     end
setup(options) click to toggle source
    # File lib/coderay/encoders/filter.rb, line 23
23:     def setup options
24:       super
25:       
26:       @tokens = options[:tokens] || Tokens.new
27:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.