Class: Kuby::CLIBase
- Inherits:
-
Object
- Object
- Kuby::CLIBase
- Defined in:
- lib/kuby/cli_base.rb
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#after_execute(&block) ⇒ Object
15 16 17 18 |
# File 'lib/kuby/cli_base.rb', line 15 def after_execute(&block) @after_execute ||= [] @after_execute << block end |
#before_execute(&block) ⇒ Object
10 11 12 13 |
# File 'lib/kuby/cli_base.rb', line 10 def before_execute(&block) @before_execute ||= [] @before_execute << block end |
#last_status ⇒ Object
6 7 8 |
# File 'lib/kuby/cli_base.rb', line 6 def last_status Thread.current[status_key] end |