Class: Vim::Buffer
- Inherits:
-
Neovim::Buffer
- Object
- Neovim::RemoteObject
- Neovim::Buffer
- Vim::Buffer
- Defined in:
- lib/neovim/ruby_provider.rb
Constant Summary
Constants inherited from Neovim::Buffer
Constants inherited from Neovim::RemoteObject
Neovim::RemoteObject::TRANSFER
Instance Attribute Summary
Attributes inherited from Neovim::RemoteObject
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 |
.count ⇒ Object
25 |
# File 'lib/neovim/ruby_provider.rb', line 25 def count ; $vim.list_bufs.size ; end |
.current ⇒ Object
24 |
# File 'lib/neovim/ruby_provider.rb', line 24 def current ; $vim.get_current_buf ; end |