insert_mode (PDF::Writer)

          # File lib/pdf/writer.rb, line 2043
    2043:   def insert_mode(options = {})
    2044:     case options
    2045:     when :on, true
    2046:       @insert_mode = true
    2047:     when :off, false
    2048:       @insert_mode = false
    2049:     else
    2050:       return @insert_mode unless options
    2051:
    2052:       @insert_mode = options[:on] unless options[:on].nil?
    2053:
    2054:       unless options[:page].nil?
    2055:         if @pageset[options[:page]].nil? or options[:page] == :last
    2056:           @insert_page = @pageset[-1]
    2057:         else
    2058:           @insert_page = @pageset[options[:page]]
    2059:         end
    2060:       end
    2061:
    2062:       @insert_position = options[:position] if options[:position]
    2063:     end
    2064:   end