Class: RoHelper::Cmd
Instance Attribute Summary collapse
-
#cmd ⇒ Object
Returns the value of attribute cmd.
-
#shortcut ⇒ Object
Returns the value of attribute shortcut.
-
#suggestion ⇒ Object
Returns the value of attribute suggestion.
Instance Method Summary collapse
-
#initialize(shortcut, cmd, suggestion = nil) ⇒ Cmd
constructor
A new instance of Cmd.
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
#cmd ⇒ Object
Returns the value of attribute cmd.
3 4 5 |
# File 'lib/ro_helper.rb', line 3 def cmd @cmd end |
#shortcut ⇒ Object
Returns the value of attribute shortcut.
3 4 5 |
# File 'lib/ro_helper.rb', line 3 def shortcut @shortcut end |
#suggestion ⇒ Object
Returns the value of attribute suggestion.
3 4 5 |
# File 'lib/ro_helper.rb', line 3 def suggestion @suggestion end |