Sha256: 8624ea77a70f3b0b37a09e5adfee16b2966f0ceeb411d8079914ad482139f692

Contents?: true

Size: 285 Bytes

Versions: 1

Compression:

Stored size: 285 Bytes

Contents

module VER
  class Status
    class BufferPosition < Label
      def setup
        register :position
      end

      def to_s
        buffers = VER.buffers.to_a
        format % [
          buffers.index(buffer).to_i + 1,
          buffers.size
        ]
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ver-2010.08 lib/ver/status/buffer_position.rb