Sha256: 1ae9856bccbaba8bd343e98a1ab6ba49a8253eb97c35dfc0f42ed4ec472e8790

Contents?: true

Size: 255 Bytes

Versions: 6

Compression:

Stored size: 255 Bytes

Contents

require "neovim/ruby_provider/vim"

module Neovim
  class Buffer
    def self.current
      ::VIM.get_current_buffer
    end

    def self.count
      ::VIM.get_buffers.size
    end

    def self.[](index)
      ::VIM.get_buffers[index]
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
neovim-0.3.0 lib/neovim/ruby_provider/buffer_ext.rb
neovim-0.2.5 lib/neovim/ruby_provider/buffer_ext.rb
neovim-0.2.4 lib/neovim/ruby_provider/buffer_ext.rb
neovim-0.2.3 lib/neovim/ruby_provider/buffer_ext.rb
neovim-0.2.2 lib/neovim/ruby_provider/buffer_ext.rb
neovim-0.2.1 lib/neovim/ruby_provider/buffer_ext.rb