Class: Neovim::Window

Inherits:
RemoteObject show all
Defined in:
lib/neovim/remote_object.rb

Direct Known Subclasses

Vim::Window

Constant Summary collapse

OPTION_PARAM =
:win

Constants inherited from RemoteObject

RemoteObject::TRANSFER

Instance Attribute Summary

Attributes inherited from RemoteObject

#client, #index

Instance Method Summary collapse

Methods inherited from 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 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

Instance Method Details

#bufferObject



297
# File 'lib/neovim/remote_object.rb', line 297

def buffer ; call_obj :get_buf ; end

#cursorObject



307
# File 'lib/neovim/remote_object.rb', line 307

def cursor     ; call_obj :get_cursor     ; end

#cursor=(yx) ⇒ Object



308
# File 'lib/neovim/remote_object.rb', line 308

def cursor= yx ; call_obj :set_cursor, yx ; end

#heightObject



299
# File 'lib/neovim/remote_object.rb', line 299

def height    ; call_obj :get_height    ; end

#height=(n) ⇒ Object



300
# File 'lib/neovim/remote_object.rb', line 300

def height= n ; call_obj :set_height, n ; end

#lineObject



305
# File 'lib/neovim/remote_object.rb', line 305

def line       ; cursor.first ; end

#numberObject



295
# File 'lib/neovim/remote_object.rb', line 295

def number ; call_obj :get_number ; end

#save_cursorObject



310
311
312
313
314
# File 'lib/neovim/remote_object.rb', line 310

def save_cursor
  c = cursor
  yield
  self.cursor = c
end

#widthObject



302
# File 'lib/neovim/remote_object.rb', line 302

def width    ; call_obj :get_width    ; end

#width=(n) ⇒ Object



303
# File 'lib/neovim/remote_object.rb', line 303

def width= n ; call_obj :set_width, n ; end