Class: Vim::Buffer

Inherits:
Neovim::Buffer show all
Defined in:
lib/neovim/ruby_provider.rb

Constant Summary

Constants inherited from Neovim::Buffer

Neovim::Buffer::OPTION_PARAM

Constants inherited from Neovim::RemoteObject

Neovim::RemoteObject::TRANSFER

Instance Attribute Summary

Attributes inherited from Neovim::RemoteObject

#client, #index

Class Method Summary collapse

Methods inherited from Neovim::Buffer

#[], #[]=, #active?, #append, #count, #delete, #each, #get_lines, #insert, #line, #line=, #line_number, #map!, #name, #number, #reject!, #select!, #set_lines

Methods inherited from Neovim::RemoteObject

#==, #call_api, #call_obj, from_mpdata, #initialize, #inspect, #method_missing, #methods, new, plain_new, #respond_to_missing?, #to_mpdata, type, #type

Methods included from Neovim::OptionAccess

#get_option, #option_params, #set_option

Constructor Details

This class inherits a constructor from Neovim::RemoteObject

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Neovim::RemoteObject

Class Method Details

.[](i) ⇒ Object



26
# File 'lib/neovim/ruby_provider.rb', line 26

def [] i    ; $vim.list_bufs[ i]   ; end

.countObject



25
# File 'lib/neovim/ruby_provider.rb', line 25

def count   ; $vim.list_bufs.size  ; end

.currentObject



24
# File 'lib/neovim/ruby_provider.rb', line 24

def current ; $vim.get_current_buf ; end