Module: SaveExecute
- Included in:
- GitHack, GitHack::GitRepo
- Defined in:
- lib/core_ext/save_execute.rb
Overview
标记方法安全运行的模块
Instance Method Summary collapse
Instance Method Details
#execute_success ⇒ Object
7 8 9 |
# File 'lib/core_ext/save_execute.rb', line 7 def execute_success @is_success = true end |
#ready_to_execute ⇒ Object
4 5 6 |
# File 'lib/core_ext/save_execute.rb', line 4 def ready_to_execute @is_success = false end |
#success? ⇒ Boolean
10 11 12 |
# File 'lib/core_ext/save_execute.rb', line 10 def success? @is_success end |