Class: RuVim::Context

Inherits:
Object
  • Object
show all
Defined in:
lib/ruvim/context.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(editor:, invocation: nil) ⇒ Context

Returns a new instance of Context.



7
8
9
10
# File 'lib/ruvim/context.rb', line 7

def initialize(editor:, invocation: nil)
  @editor = editor
  @invocation = invocation
end

Instance Attribute Details

#editorObject (readonly)

Returns the value of attribute editor.



5
6
7
# File 'lib/ruvim/context.rb', line 5

def editor
  @editor
end

#invocationObject (readonly)

Returns the value of attribute invocation.



5
6
7
# File 'lib/ruvim/context.rb', line 5

def invocation
  @invocation
end

Instance Method Details

#bufferObject



16
17
18
# File 'lib/ruvim/context.rb', line 16

def buffer
  editor.current_buffer
end

#windowObject



12
13
14
# File 'lib/ruvim/context.rb', line 12

def window
  editor.current_window
end