Class: PDF::Core::FilterList

### Home Classes Methods

### In Files

- lib/pdf/core/filter_list.rb

### Parent

Object

### Methods

- ::new
- #<<
- #decode_params
- #each
- #inspect
- #names
- #normalized
- #to_a

### Class/Module Index

Quicksearch

- PDF
- PDF::Core
- PDF::Core::Errors
- PDF::Core::FilterList
- PDF::Core::Filters
- PDF::Core::Filters::DCTDecode
- PDF::Core::Filters::FlateDecode
- PDF::Core::GraphicState
- PDF::Core::GraphicStateStack
- PDF::Core::PageGeometry
- PDF::Core::Renderer
- PDF::Core::Stream

No matching classes.

# PDF::Core::FilterList

### Public Class Methods

new() click to toggle source

    # File lib/pdf/core/filter_list.rb, line 4
    def initialize
      @list = []
    end

### Public Instance Methods

<<(filter) click to toggle source

    # File lib/pdf/core/filter_list.rb, line 8
    def <<(filter)
      case filter
      when Symbol
        @list << [filter, nil]
      when ::Hash
        filter.each do |name, params|
          @list << [name, params]
        end
      else
        raise "Can not interpret input as filter: #{filter.inspect}"
      end

      self
    end

decode_params() click to toggle source

    # File lib/pdf/core/filter_list.rb, line 34
    def decode_params
      @list.map do |(_, params)|
        params
      end
    end

each(&block) click to toggle source

    # File lib/pdf/core/filter_list.rb, line 44
    def each(&block)
      @list.each do |filter|
        block.call(filter)
      end
    end

inspect() click to toggle source

    # File lib/pdf/core/filter_list.rb, line 40
    def inspect
      @list.inspect
    end

names() click to toggle source

    # File lib/pdf/core/filter_list.rb, line 28
    def names
      @list.map do |(name, _)|
        name
      end
    end

normalized() click to toggle source

    # File lib/pdf/core/filter_list.rb, line 23
    def normalized
      @list
    end

Also aliased as: to_a
to_a() click to toggle source
Alias for: normalized

[Validate]

Generated with the Darkfish Rdoc Generator 2.