Module: Rustic::HooksExt
- Includes:
- Console
- Included in:
- Config, Configs::Backup, Configs::Check, Configs::Forget
- Defined in:
- lib/rustic/hooks_ext.rb
Instance Method Summary collapse
Instance Method Details
#after(&block) ⇒ Object
12 13 14 15 16 |
# File 'lib/rustic/hooks_ext.rb', line 12 def after(&block) return @after if block.nil? @after = block end |
#before(&block) ⇒ Object
6 7 8 9 10 |
# File 'lib/rustic/hooks_ext.rb', line 6 def before(&block) return @before if block.nil? @before = block end |