Class: RuVim::CommandInvocation

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id:, argv: nil, kwargs: nil, count: nil, bang: false, raw_keys: nil) ⇒ CommandInvocation

Returns a new instance of CommandInvocation.



7
8
9
10
11
12
13
14
# File 'lib/ruvim/command_invocation.rb', line 7

def initialize(id:, argv: nil, kwargs: nil, count: nil, bang: false, raw_keys: nil)
  @id = id
  @argv = argv || []
  @kwargs = kwargs || {}
  @count = count
  @bang = bang
  @raw_keys = raw_keys
end

Instance Attribute Details

#argvObject

Returns the value of attribute argv.



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

def argv
  @argv
end

#bangObject

Returns the value of attribute bang.



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

def bang
  @bang
end

#countObject

Returns the value of attribute count.



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

def count
  @count
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#kwargsObject

Returns the value of attribute kwargs.



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

def kwargs
  @kwargs
end

#raw_keysObject

Returns the value of attribute raw_keys.



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

def raw_keys
  @raw_keys
end