Class: RuVim::CommandInvocation
- Inherits:
-
Object
- Object
- RuVim::CommandInvocation
- Defined in:
- lib/ruvim/command_invocation.rb
Instance Attribute Summary collapse
-
#argv ⇒ Object
Returns the value of attribute argv.
-
#bang ⇒ Object
Returns the value of attribute bang.
-
#count ⇒ Object
Returns the value of attribute count.
-
#id ⇒ Object
Returns the value of attribute id.
-
#kwargs ⇒ Object
Returns the value of attribute kwargs.
-
#raw_keys ⇒ Object
Returns the value of attribute raw_keys.
Instance Method Summary collapse
-
#initialize(id:, argv: nil, kwargs: nil, count: nil, bang: false, raw_keys: nil) ⇒ CommandInvocation
constructor
A new instance of CommandInvocation.
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
#argv ⇒ Object
Returns the value of attribute argv.
5 6 7 |
# File 'lib/ruvim/command_invocation.rb', line 5 def argv @argv end |
#bang ⇒ Object
Returns the value of attribute bang.
5 6 7 |
# File 'lib/ruvim/command_invocation.rb', line 5 def bang @bang end |
#count ⇒ Object
Returns the value of attribute count.
5 6 7 |
# File 'lib/ruvim/command_invocation.rb', line 5 def count @count end |
#id ⇒ Object
Returns the value of attribute id.
5 6 7 |
# File 'lib/ruvim/command_invocation.rb', line 5 def id @id end |
#kwargs ⇒ Object
Returns the value of attribute kwargs.
5 6 7 |
# File 'lib/ruvim/command_invocation.rb', line 5 def kwargs @kwargs end |
#raw_keys ⇒ Object
Returns the value of attribute raw_keys.
5 6 7 |
# File 'lib/ruvim/command_invocation.rb', line 5 def raw_keys @raw_keys end |