Class: RuVim::Context
- Inherits:
-
Object
- Object
- RuVim::Context
- Defined in:
- lib/ruvim/context.rb
Instance Attribute Summary collapse
-
#editor ⇒ Object
readonly
Returns the value of attribute editor.
-
#invocation ⇒ Object
readonly
Returns the value of attribute invocation.
Instance Method Summary collapse
- #buffer ⇒ Object
-
#initialize(editor:, invocation: nil) ⇒ Context
constructor
A new instance of Context.
- #window ⇒ Object
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
#editor ⇒ Object (readonly)
Returns the value of attribute editor.
5 6 7 |
# File 'lib/ruvim/context.rb', line 5 def editor @editor end |
#invocation ⇒ Object (readonly)
Returns the value of attribute invocation.
5 6 7 |
# File 'lib/ruvim/context.rb', line 5 def invocation @invocation end |
Instance Method Details
#buffer ⇒ Object
16 17 18 |
# File 'lib/ruvim/context.rb', line 16 def buffer editor.current_buffer end |
#window ⇒ Object
12 13 14 |
# File 'lib/ruvim/context.rb', line 12 def window editor.current_window end |