Module: PathMapper::Helper::Debug
- Included in:
- PathMapper::Helpers
- Defined in:
- lib/path_mapper/helper/debug.rb
Instance Method Summary collapse
Instance Method Details
#dry_run ⇒ Object
4 5 6 |
# File 'lib/path_mapper/helper/debug.rb', line 4 def dry_run Thread.current[:dry_run] end |
#dry_run=(state) ⇒ Object
8 9 10 |
# File 'lib/path_mapper/helper/debug.rb', line 8 def dry_run=(state) Thread.current[:dry_run] = state end |
#with_dry_run ⇒ Object
12 13 14 15 16 17 |
# File 'lib/path_mapper/helper/debug.rb', line 12 def with_dry_run old = self.dry_run yield old ensure self.dry_run = old end |