Class: GitUI::Action
- Inherits:
-
Object
- Object
- GitUI::Action
- Defined in:
- lib/git_ui.rb
Instance Attribute Summary collapse
-
#block ⇒ Object
Returns the value of attribute block.
-
#desc ⇒ Object
Returns the value of attribute desc.
-
#key ⇒ Object
Returns the value of attribute key.
Instance Method Summary collapse
-
#initialize(k, d, &b) ⇒ Action
constructor
A new instance of Action.
Constructor Details
#initialize(k, d, &b) ⇒ Action
Returns a new instance of Action.
7 8 9 10 11 |
# File 'lib/git_ui.rb', line 7 def initialize(k, d, &b) @key = k @desc = d @block = b end |
Instance Attribute Details
#block ⇒ Object
Returns the value of attribute block.
6 7 8 |
# File 'lib/git_ui.rb', line 6 def block @block end |
#desc ⇒ Object
Returns the value of attribute desc.
6 7 8 |
# File 'lib/git_ui.rb', line 6 def desc @desc end |
#key ⇒ Object
Returns the value of attribute key.
6 7 8 |
# File 'lib/git_ui.rb', line 6 def key @key end |