Class: RoHelper::Cmd

Inherits:
Object show all
Defined in:
lib/ro_helper.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(shortcut, cmd, suggestion = nil) ⇒ Cmd

Returns a new instance of Cmd.



5
6
7
8
9
# File 'lib/ro_helper.rb', line 5

def initialize(shortcut, cmd, suggestion=nil)
  @shortcut = shortcut
  @cmd = cmd
  @suggestion = suggestion
end

Instance Attribute Details

#cmdObject

Returns the value of attribute cmd.



3
4
5
# File 'lib/ro_helper.rb', line 3

def cmd
  @cmd
end

#shortcutObject

Returns the value of attribute shortcut.



3
4
5
# File 'lib/ro_helper.rb', line 3

def shortcut
  @shortcut
end

#suggestionObject

Returns the value of attribute suggestion.



3
4
5
# File 'lib/ro_helper.rb', line 3

def suggestion
  @suggestion
end